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:
parent
662e02cd70
commit
1a3d95f6ab
@ -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. -->
|
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -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
|
||||
|
2
.github/workflows/lint.yaml
vendored
2
.github/workflows/lint.yaml
vendored
@ -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
|
||||
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -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
|
||||
|
10
.github/workflows/test.yaml
vendored
10
.github/workflows/test.yaml
vendored
@ -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 ./...
|
||||
|
Loading…
Reference in New Issue
Block a user