diff --git a/.github/workflows/golang-tests.yaml b/.github/workflows/golang-tests.yaml new file mode 100644 index 0000000..b18521b --- /dev/null +++ b/.github/workflows/golang-tests.yaml @@ -0,0 +1,30 @@ +name: Go Test + +on: + push: + tags: + - v* + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.19' + + - name: Install dependencies + run: go mod download + + - name: Run tests + run: go test ./tests