Skip to content

Commit

Permalink
chore(CI): use newer version of checkout, setup-go and golangci-lint-…
Browse files Browse the repository at this point in the history
…action
  • Loading branch information
MateuszKepczynskiSauce committed Sep 18, 2024
1 parent 97aa5cc commit c8259b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go Lint
name: golangci-lint

on:
push:
Expand All @@ -7,18 +7,15 @@ on:
pull_request:

jobs:
lint:
if: github.event_name == 'pull_request'
golangci:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.0
args: --timeout 3m
version: v1.60
11 changes: 5 additions & 6 deletions .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: go test

on:
push:
Expand All @@ -7,18 +7,17 @@ on:
pull_request:

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

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run Unit Tests
Expand Down

0 comments on commit c8259b8

Please sign in to comment.