Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Go 1.18 for linting #63

Merged
merged 2 commits into from Aug 10, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 6 additions & 24 deletions .github/workflows/lint.yml
@@ -1,45 +1,27 @@
name: Lint
on: [push, pull_request]

permissions:
contents: read

jobs:
go-mod:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16]
runs-on: ${{ matrix.os }}
lint:
runs-on: ubuntu-latest

steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
go-version: "1.18"

- name: Checkout repository
uses: actions/checkout@v3

- name: Check go mod
- name: Check dependencies
run: |
go mod tidy
git diff --exit-code go.mod

lint:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16]
runs-on: ${{ matrix.os }}

steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Checkout repository
uses: actions/checkout@v3

- name: Lint
uses: golangci/golangci-lint-action@v3.1.0
with:
Expand Down