Skip to content

chore(deps): update actions/setup-go action to v5.2.0 (#230) #507

chore(deps): update actions/setup-go action to v5.2.0 (#230)

chore(deps): update actions/setup-go action to v5.2.0 (#230) #507

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
paths-ignore:
- 'README.md'
- 'docs/**'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- name: Run linters
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: latest
args: --timeout=5m
test:
name: Acceptance Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- run: go test -p 1 -v -coverprofile=coverage.out -covermode=atomic ./... -timeout 5m
timeout-minutes: 5
env:
WEBHOOK_SECRET: test_Secret1
GIT_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}