Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixq authored Dec 3, 2024
1 parent 1ee2cd4 commit ac0a06c
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ on:
jobs:
go:
runs-on: ubuntu-latest

strategy:
matrix:
util:
- maven
- resolve
- semver
examples:
- artifact_query
- dependencies_dot
- maven_parse_resolve
- package_lock_licenses
- package_lock_licenses_batch
- resolve

steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -18,14 +33,12 @@ jobs:
with:
go-version: stable

- name: Run tests in maven
working-directory: ./util/maven
- name: Build examples
working-directory: examples/go/${{ matrix.examples }}
run: go test ./...

- name: Run tests in resolve
working-directory: ./util/resolve
- name: Run util tests
working-directory: util/${{ matrix.util }}
run: go test ./...

- name: Run tests in semver
working-directory: ./util/semver
run: go test ./...

0 comments on commit ac0a06c

Please sign in to comment.