Skip to content

Commit

Permalink
Maintain CI settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Nov 20, 2024
1 parent 13ebdaa commit bf5e3be
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 22 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go-version: ["1.19", "1.20"]
go-version: ["1.22", "1.23"]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Make
run: make build-all-amd
- name: Upload Build as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos_amd
path: dist/macos_amd
name: macos_amd-${{ matrix.go-version }}
path: dist/macos_amd-${{ matrix.go-version }}
- name: Upload Build as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux
path: dist/linux
name: linux-${{ matrix.go-version }}
path: dist/linux-${{ matrix.go-version }}
- name: Upload Build as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows
path: dist/windows
name: windows-${{ matrix.go-version }}
path: dist/windows-${{ matrix.go-version }}
6 changes: 3 additions & 3 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go-version: ["1.20"]
go-version: ["1.23"]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Licenses tool
run: go get github.com/google/go-licenses
- name: License
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go-version: ["1.20"]
go-version: ["1.23"]
runs-on: ${{ matrix.os }}

steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build
run: sh build.sh ${GITHUB_REF##*/}
- name: Upload
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: ["1.19", "1.20"]
go-version: ["1.22", "1.23"]
runs-on: ${{ matrix.os }}
steps:
- name: Install tools
run: curl --version
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Test
if: matrix.os != 'ubuntu-latest'
run: go test -v ./pkg/...
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
command: go test -v ./pkg/...
- name: Test with coverage
if: matrix.os == 'ubuntu-latest'
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./pkg/...
Expand Down

0 comments on commit bf5e3be

Please sign in to comment.