Skip to content

Commit

Permalink
build(tests): add run tests workflow
Browse files Browse the repository at this point in the history
Fixes: #5
  • Loading branch information
piraz committed May 31, 2024
1 parent fa02ca6 commit de8550f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run gopeasant tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.20", "1.21", "1.22"]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.node-version }}
uses: actions/setup-go@v5
with:
node-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go mod tidy
- name: Run go unit tests
run: |
CGO_ENABLED=0 go clean -testcache && go test . ./testrunner

0 comments on commit de8550f

Please sign in to comment.