github.com/shoshinnikita/budget-manager@v0.7.1-0.20220131195411-8c46ff1c6778/.github/workflows/check_code.yml (about) 1 name: check code 2 on: 3 push: 4 paths-ignore: 5 - "docs/**" 6 - "scripts/**" 7 - "static/**" 8 - "templates/**" 9 - "tools/**" 10 - "README.md" 11 12 jobs: 13 test: 14 name: run tests 15 runs-on: ubuntu-latest 16 steps: 17 - uses: actions/setup-go@v2 18 with: 19 go-version: 1.17 20 21 - uses: actions/checkout@v2 22 23 - name: Prepare environment for the integration tests 24 run: | 25 docker pull postgres:12-alpine 26 27 - name: Run integration tests 28 run: make test-integ 29 30 lint: 31 name: lint code 32 runs-on: ubuntu-latest 33 steps: 34 - uses: actions/setup-go@v2 35 with: 36 go-version: 1.17 37 38 - uses: actions/checkout@v2 39 40 - uses: golangci/golangci-lint-action@v2 41 with: 42 version: v1.42 43 skip-go-installation: true