Skip to content

Commit

Permalink
refactor github action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
siakhooi committed Apr 14, 2024
1 parent 84225b3 commit 0c9d399
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/workflow-build-with-quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ jobs:
build:
needs: quality
uses: ./.github/workflows/build-deb-file.yml
test-ubuntu:
test:
needs: build
uses: ./.github/workflows/test-with-ubuntu.yml
test-debian:
needs: build
uses: ./.github/workflows/test-with-debian.yml
bats-test-debian:
needs: build
uses: ./.github/workflows/test-with-bats-debian.yml
bats-test-ubuntu:
needs: build
uses: ./.github/workflows/test-with-bats-ubuntu.yml
uses: .github/workflows/workflow-run-all-tests.yml
17 changes: 4 additions & 13 deletions .github/workflows/workflow-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,16 @@ jobs:
build:
needs: quality
uses: ./.github/workflows/build-deb-file.yml
test-ubuntu:
test:
needs: build
uses: ./.github/workflows/test-with-ubuntu.yml
test-debian:
needs: build
uses: ./.github/workflows/test-with-debian.yml
bats-test-debian:
needs: build
uses: ./.github/workflows/test-with-bats-debian.yml
bats-test-ubuntu:
needs: build
uses: ./.github/workflows/test-with-bats-ubuntu.yml
uses: .github/workflows/workflow-run-all-tests.yml
release-assets:
needs: [test-ubuntu, test-debian, bats-test-debian, bats-test-ubuntu]
needs: test
uses: ./.github/workflows/deploy-github-release-assets.yml
secrets:
TOKEN_TO_UPLOAD_ASSETS: ${{ secrets.TOKEN_TO_UPLOAD_ASSETS }}
siakhooi-apt:
needs: [test-ubuntu, test-debian, bats-test-debian, bats-test-ubuntu]
needs: test
uses: ./.github/workflows/publish-to-siakhooi-apt.yml
secrets:
PUBLISH_TO_APT_GITHUB_TOKEN: ${{ secrets.PUBLISH_TO_APT_GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/workflow-run-all-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run all tests
on:
workflow_dispatch
workflow_call

jobs:
test-ubuntu:
needs: build
uses: ./.github/workflows/test-with-ubuntu.yml
test-debian:
needs: build
uses: ./.github/workflows/test-with-debian.yml
bats-test-debian:
needs: build
uses: ./.github/workflows/test-with-bats-debian.yml
bats-test-ubuntu:
needs: build
uses: ./.github/workflows/test-with-bats-ubuntu.yml

0 comments on commit 0c9d399

Please sign in to comment.