Skip to content

Commit

Permalink
chore(CI): add golangci-lint for PRs (#19)
Browse files Browse the repository at this point in the history
* chore(CI): add golangci-lint for PRs

* chore(CI): use newer version of checkout, setup-go and golangci-lint-action

* chore(CI): move linter to tests.yml

* chore(CI): merge linter and tests into one job
  • Loading branch information
MateuszKepczynskiSauce authored Sep 18, 2024
1 parent 9dac068 commit cbbcbf2
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Lint and Test

on:
push:
Expand All @@ -7,21 +7,23 @@ on:
pull_request:

jobs:
test:
run-tests:
name: lint-and-test
strategy:
matrix:
go-version: [1.18, 1.22]
os: [ubuntu-latest, macos-latest, windows-latest]

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

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

- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
- name: Run Unit Tests
run: |
run: |
go test

0 comments on commit cbbcbf2

Please sign in to comment.