Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: set up a workflow to run tests #114

Merged
merged 6 commits into from
Dec 3, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Go Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
run_go_tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: stable

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

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

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