Skip to content

Merge pull request #38 from foomo/dependabot/go_modules/github.com/go… #46

Merge pull request #38 from foomo/dependabot/go_modules/github.com/go…

Merge pull request #38 from foomo/dependabot/go_modules/github.com/go… #46

Workflow file for this run

name: Pull Requests
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GOFLAGS: -mod=readonly
GOPROXY: https://proxy.golang.org
jobs:
pull-request:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
check-latest: true
go-version-file: 'go.mod'
- name: Run go mod tidy
run: |
go mod tidy
git diff --exit-code
- uses: golangci/golangci-lint-action@v3
- name: Run go test
run: |
go test -v ./...