Skip to content

Commit

Permalink
Merge pull request #63 from cli/go-1.18-lint
Browse files Browse the repository at this point in the history
Use Go 1.18 for linting
  • Loading branch information
mislav committed Aug 10, 2022
2 parents 853b6a5 + d345537 commit f649e37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
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
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
@@ -1,14 +1,17 @@
name: Test
on: [push, pull_request]

permissions:
contents: read

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go: [1.16]
go: ["1.18", "1.19"]

runs-on: ${{ matrix.os }}

steps:
Expand Down

0 comments on commit f649e37

Please sign in to comment.