From 7c22be5d3e96b27162159ae7c15b06b710349335 Mon Sep 17 00:00:00 2001 From: Alexander Baranov Date: Fri, 1 Jul 2022 21:04:19 +0600 Subject: [PATCH] enable github actions --- .github/workflows/pr.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..28b98b3 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,30 @@ +name: PR sanity check + +on: pull_request + +jobs: + prcheck: + name: PR sanity check + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.18' + - name: Install dependencies + run: | + go version + go get -u golang.org/x/lint/golint + - name: Run vet & lint + run: | + go vet . + golint . + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + # # Run testing on the code + # - name: Run testing + # run: cd test && go test -v