github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/.github/workflows/pr.yml (about) 1 name: PR Sanity Check 2 on: pull_request 3 4 jobs: 5 6 prtest: 7 name: PR sanity check 8 runs-on: ubuntu-latest 9 steps: 10 - name: Install Protoc 11 uses: arduino/setup-protoc@v1 12 - name: Set up Go 1.16 13 uses: actions/setup-go@v1 14 with: 15 go-version: 1.16 16 id: go 17 18 - name: Check out code into the Go module directory 19 uses: actions/checkout@v2 20 21 - name: Check Go mod sanity 22 run: | 23 echo "Checking if go mod has unneeded comments" 24 while read p; do 25 ! grep -R "$p" go.mod 26 done <./test/gomod_forbidden_words.txt 27 28 - name: Get dependencies 29 run: | 30 go get -v -t -d ./... 31 32 - name: Run tests 33 id: tests 34 env: 35 IN_TRAVIS_CI: yes 36 run: go test -v ./...