Skip to content

Commit

Permalink
feat: remove ESCU workflow and run unit tests before build (#163)
Browse files Browse the repository at this point in the history
* feat: remove ESCU workflow, it has a separate repository

* docs: update lint section

* feat: update https://github.com/splunk/appinspect-cli-action to 1.9.0

* chore: update amannn/action-semantic-pull-request to 5.2.0

* chore: update docker/login-action to 2.2.0

* chore: update docker/metadata-action to 4.6.0

* chore: update aws-actions/configure-aws-credentials to v2

* chore: update renovate configuration

* feat: run unit tests before build

* fix: allow skipped unit tests job

* style: rearrange the jobs

* chore: remove validate-pr-title job

* style: put run-unit-tests before build

* fix: run all the jobs after build is successful

* chore: virus total depends on the build

* fix: try a fix for knowledge tests

* fix: apply the skipped fix for all tests

* fix: run artifact-registry

* fix: run-scipted-input-* run condition

* chore: fix typo

* chore: put back validate-pr-title job

* ci: give additional permissions to update-semver job

* feat: use splunk/appinspect-cli-action v1.9

BREAKING CHANGE: remove ESCU workflow and run unit tests before build
  • Loading branch information
artemrys authored Jul 4, 2023
1 parent c8b8599 commit b7ddaaa
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 419 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/agreements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
call-workflow-agreements:
uses: splunk/addonfactory-github-workflows/.github/workflows/reusable-agreements.yaml@v1.3
uses: splunk/addonfactory-github-workflows/.github/workflows/reusable-agreements.yaml@v1
permissions:
actions: read
contents: read
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/build-test-release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: CI

on:
workflow_dispatch:
push:
Expand All @@ -10,20 +8,19 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches: [main, develop]

permissions:
contents: write
packages: read
pull-requests: read
statuses: write

jobs:
compliance-copyrights:
name: Compliance Copyright Headers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check License Header
uses: apache/skywalking-eyes@main
- uses: actions/checkout@v3
- uses: apache/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -34,13 +31,11 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Install actionlint
run: |
- run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.24/scripts/download-actionlint.bash)
- uses: pre-commit/[email protected]

publish:
name: Build Release
needs:
- compliance-copyrights
- pre-commit
Expand All @@ -61,9 +56,10 @@ jobs:
passphrase: ${{ secrets.SA_GPG_PASSPHRASE }}

update-semver:
name: Move Respository semver tags
if: startsWith(github.ref, 'refs/tags/v')
needs: publish
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
Loading

0 comments on commit b7ddaaa

Please sign in to comment.