diff options
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r-- | .github/workflows/test.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5eddd07 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + name: Build + strategy: + matrix: + go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x] + platform: [ubuntu-20.04] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + + - name: Build + run: make build + + - name: Test + run: make test + + lint: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - uses: golangci/golangci-lint-action@v4.0.0 + with: + version: v1.55 |