Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nasermirzaei89 committed Feb 24, 2024
1 parent 279db43 commit d352341
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Build

on: [push]
on: push

jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.17', '1.18', '1.19']
go: [ '1.17', '1.18', '1.19','1.20','1.21','1.22' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: go build .
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: go build .
18 changes: 9 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Lint

on: [push]
on: push

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: v1.49
only-new-issues: true
skip-cache: true
skip-pkg-cache: true
skip-build-cache: true
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: v1.56.2
only-new-issues: true
skip-cache: true
skip-pkg-cache: true
skip-build-cache: true
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Test and Coverage

on: [push]
on: push

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.17', '1.18', '1.19']
go: [ '1.17', '1.18', '1.19','1.20','1.21','1.22' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Run test
run: go test -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Run test
run: go test -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit d352341

Please sign in to comment.