Skip to content

Commit

Permalink
cicd: use common workflow in config module CI
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Jun 22, 2023
1 parent 5b87693 commit 83d9b2f
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/config-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,11 @@ jobs:
with:
go: ${{ matrix.go }}
dir: ./config
test:
name: Test

tests:
needs: ['config']
runs-on: ubuntu-latest
strategy:
matrix:
go: ${{ fromJSON(needs.config.outputs.go_versions) }}
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- uses: ./.github/actions/go-cache
with:
go: ${{ matrix.go }}
- run: cd config && go test ./...
- uses: actions/upload-artifact@v3
if: failure()
with:
name: workspace-${{matrix.go}}
path: ${{ github.workspace }}
uses: ./.github/workflows/tests.yml
with:
cd: config
package_expr: ./...
go_versions: ${{ needs.config.outputs.go_versions }}

0 comments on commit 83d9b2f

Please sign in to comment.