-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from thaJeztah/update_gha
update actions, golangci-lint, and test against go1.22.x
- Loading branch information
Showing
7 changed files
with
52 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,16 @@ jobs: | |
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: src/github.com/containerd/fifo | ||
path: src/github.com/containerd/fifo # project-checks depends on GOPATH mode | ||
fetch-depth: 25 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.20.x | ||
go-version: 1.22.x | ||
- uses: containerd/[email protected] | ||
with: | ||
working-directory: src/github.com/containerd/fifo | ||
working-directory: src/github.com/containerd/fifo # project-checks depends on GOPATH mode | ||
|
||
linters: | ||
name: Linters | ||
|
@@ -32,38 +32,38 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
go-version: [1.20.x] | ||
os: [ubuntu-22.04, macos-12, windows-2022] | ||
go-version: [1.22.x] | ||
os: [ubuntu-22.04, macos-14, windows-2022] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
path: src/github.com/containerd/fifo | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Set env | ||
shell: bash | ||
run: | | ||
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV | ||
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
- uses: golangci/golangci-lint-action@v3 | ||
- uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.51.1 | ||
working-directory: src/github.com/containerd/fifo | ||
version: v1.59.1 | ||
|
||
tests: | ||
name: Tests | ||
runs-on: ubuntu-22.04 | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: src/github.com/containerd/fifo | ||
strategy: | ||
matrix: | ||
go-version: [1.20.x, 1.22.x] | ||
os: [ubuntu-22.04] | ||
|
||
- uses: actions/setup-go@v3 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.20.x | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- run: make test | ||
working-directory: src/github.com/containerd/fifo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,3 @@ linters-settings: | |
|
||
run: | ||
timeout: 3m | ||
skip-dirs: | ||
- vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters