diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..6ce74f9 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Run Tests + +on: + pull_request: + branches: + - main + push: + branches: + - main + +concurrency: + group: test-amd64-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Golang 1.20 + uses: actions/setup-go@v5 + with: + go-version: 1.20 + + - name: Run tests + run: go test -v ./...