-
Notifications
You must be signed in to change notification settings - Fork 32
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 #604 from mackerelio/go121
update Go version to 1.21 and 1.20 by using reusable workflow
- Loading branch information
Showing
4 changed files
with
18 additions
and
51 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
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 |
---|---|---|
|
@@ -11,46 +11,9 @@ env: | |
DEBIAN_FRONTEND: noninteractive | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
- uses: golangci/golangci-lint-action@v3 | ||
uses: mackerelio/workflows/.github/workflows/[email protected] | ||
test: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19.x | ||
- run: | | ||
go test -race -covermode atomic -coverprofile=profile.cov ./... | ||
shell: bash | ||
- uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-profile: profile.cov | ||
parallel: true | ||
flag-name: Go-${{ matrix.os }} | ||
finish: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true | ||
uses: mackerelio/workflows/.github/workflows/[email protected] | ||
build: | ||
needs: [lint, test] | ||
runs-on: ubuntu-latest | ||
|
@@ -62,16 +25,11 @@ jobs: | |
rpm devscripts debhelper fakeroot \ | ||
crossbuild-essential-arm64 crossbuild-essential-armhf | ||
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19.x | ||
- uses: actions/checkout@v4 | ||
go-version: 1.21.x | ||
cache: true | ||
- run: make all | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/mackerelio/mkr | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/Songmu/goxz v0.9.1 | ||
|