github.com/fiatjaf/generic-ristretto@v0.0.1/.github/workflows/ci-ristretto-tests.yml (about) 1 name: ci-ristretto-tests 2 on: 3 push: 4 branches: 5 - main 6 pull_request_target: 7 branches: 8 - main 9 schedule: 10 - cron: "30 * * * *" 11 jobs: 12 ristretto-tests: 13 runs-on: ubuntu-20.04 14 steps: 15 - uses: actions/checkout@v3 16 - name: Get Go Version 17 run: | 18 #!/bin/bash 19 GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) 20 echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV 21 - name: Setup Go 22 uses: actions/setup-go@v3 23 with: 24 go-version: ${{ env.GOVERSION }} 25 - name: Run Unit Tests 26 run: go test -race -covermode atomic -coverprofile=covprofile ./... 27 - name: Install Goveralls 28 run: go install github.com/mattn/goveralls@latest 29 - name: Send Coverage Results 30 env: 31 COVERALLS_TOKEN: ${{ secrets.COVERALLSIO_TOKEN }} 32 run: goveralls -coverprofile=covprofile 33