diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..d574fdc --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,13 @@ +--- +name: test +on: pull_request +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + - uses: actions/setup-go@v5.0.0 + with: + go-version: '1.21.5' + - run: make lint + - run: make test diff --git a/Makefile b/Makefile index b3fe2a3..dbdabfe 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ install: go install ./cmd/minimock ./bin/golangci-lint: ./bin - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.51.1 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.55.2 ./bin/goreleaser: ./bin go install -modfile tools/go.mod github.com/goreleaser/goreleaser