From de8550f1f55dcbdcf27cab34c4f1bf7340e2e6cb Mon Sep 17 00:00:00 2001 From: Flavio Garcia Date: Fri, 31 May 2024 10:03:05 -0400 Subject: [PATCH] build(tests): add run tests workflow Fixes: #5 --- .github/workflows/run_tests.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/run_tests.yml diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 0000000..f2027fd --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -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