Skip to content

Commit

Permalink
ci: run tests for go packages
Browse files Browse the repository at this point in the history
Signed-off-by: Gareth Jones <[email protected]>
  • Loading branch information
G-Rath committed Oct 21, 2024
1 parent 57a2599 commit 30bef0a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,30 @@ concurrency:
permissions: {}

jobs:
tests_osv-go:
permissions:
contents: read # to fetch code (actions/checkout)
name: Run `packages/go` unit tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/go
steps:
- name: Check out code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: stable
check-latest: true

- run: go test ./...
tests_osv-linter:
permissions:
contents: read # to fetch code (actions/checkout)
name: Run unit tests
name: Run `osv-linter` unit tests
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit 30bef0a

Please sign in to comment.