Skip to content

Commit

Permalink
test empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hspitzley-czi committed Feb 23, 2024
1 parent 5455149 commit 18360aa
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
id: changedGoPackages
uses: ./.github/actions/find-changed-packages

run-ci:
run-lint:
runs-on: [ARM64, self-hosted, Linux]
needs: find-changed-packages
if: ${{ needs.find-changed-packages.outputs.changedPackages != '[]' }}
strategy:
matrix:
gopkg: ${{ fromJson(needs.find-changed-packages.outputs.changedPackages) }}
# gopkg: ${{ fromJson(needs.find-changed-packages.outputs.changedPackages) }}
gopkg: []

steps:
- uses: actions/checkout@v4
Expand All @@ -40,13 +41,30 @@ jobs:
reporter: github-pr-review
golangci_lint_flags: "--config=../.golangci.yml --out-format=line-number -v --timeout 5m"
workdir: ${{ matrix.gopkg }}

run-tests:
runs-on: [ARM64, self-hosted, Linux]
needs: find-changed-packages
if: ${{ needs.find-changed-packages.outputs.changedPackages != '[]' }}
strategy:
matrix:
# gopkg: ${{ fromJson(needs.find-changed-packages.outputs.changedPackages) }}
gopkg: []

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ${{ matrix.gopkg }}/go.mod
- name: Run tests
run: make test-ci
working-directory: ${{ matrix.gopkg }}

# this job exists to give us something to make a required check on that will ensure all CI runs are complete
run-ci-complete:
runs-on: [ARM64, self-hosted, Linux]
needs: run-ci
needs:
- run-tests
- run-lint
steps:
- run: echo "CI runs complete"

0 comments on commit 18360aa

Please sign in to comment.