1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00

chore: update actions (#1075)

* chore: update GitHub actions

* chore: move PR template
This commit is contained in:
Ludovic Fernandez 2024-10-25 14:32:38 +02:00 committed by GitHub
parent 662e02cd70
commit 1a3d95f6ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 13 deletions

View File

@ -6,7 +6,7 @@
<!-- Please, describe in details what's your motivation for this PR -->
<!-- Did you add tests? -->
<!-- Does your code follow the coding style of the rest of the repository? -->
<!-- Does the Travis build passes? -->
<!-- Does the GitHub Action build passes? -->
<!-- ### FOOTER (OPTIONAL) ### -->
<!-- If you're closing an issue, add "Closes #XXXX" in your comment. This way, the PR will be linked to the issue automatically. -->

View File

@ -9,6 +9,6 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: build
run: make build

View File

@ -12,7 +12,7 @@ jobs:
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Run Revive Action
uses: morphy2k/revive-action@v2

View File

@ -11,17 +11,17 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: sable
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean

View File

@ -12,16 +12,14 @@ jobs:
fail-fast: false
matrix:
go-version:
- 1.21.x
- 1.22.x
- oldstable
- stable
steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3.2.0
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: '**/go.sum'
- name: Run tests
run: go test -race ./...