Skip to content

[gh-actions] Bump coverallsapp/github-action from 2.3.4 to 2.3.6 (#24) #135

[gh-actions] Bump coverallsapp/github-action from 2.3.4 to 2.3.6 (#24)

[gh-actions] Bump coverallsapp/github-action from 2.3.4 to 2.3.6 (#24) #135

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: run tests
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run linters
uses: golangci/golangci-lint-action@v6
with:
version: v1.64.7
problem-matchers: true
args: --issues-exit-code=0 --out-format=sarif > linter-results.sarif # we expect some findings, but for this demo just continue
- name: Upload SARIF to Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./linter-results.sarif
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify go version
run: |
echo "GOVERSION=$(go version)" >> $GITHUB_ENV
go version
- name: Run tests
run: go test -v -covermode=count -coverprofile=coverage.out
- name: Coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b #2.3.6
with:
github-token: ${{ secrets.github_token }}
file: coverage.out
format: golang