1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +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 --> <!-- Please, describe in details what's your motivation for this PR -->
<!-- Did you add tests? --> <!-- Did you add tests? -->
<!-- Does your code follow the coding style of the rest of the repository? --> <!-- 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) ### --> <!-- ### 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. --> <!-- 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 name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: build - name: build
run: make build run: make build

View File

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

View File

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

View File

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