-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix to use GitHub Actions * use Go 1.21 * disable Reviewdog
- Loading branch information
Showing
9 changed files
with
87 additions
and
258 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: main | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
jobs: | ||
test: | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -eu -o pipefail {0} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup go | ||
id: setup-go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: "go.mod" | ||
- name: Download dependencies | ||
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }} | ||
run: | | ||
go mod download | ||
- name: Run test | ||
run: | | ||
make test | ||
lint: | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -eu -o pipefail {0} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup go | ||
id: setup-go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: "go.mod" | ||
- name: Download dependencies | ||
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }} | ||
run: | | ||
go mod download | ||
- name: Run lint tools | ||
run: | | ||
make lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
module go.mercari.io/go-emv-code | ||
|
||
go 1.12 | ||
go 1.21 | ||
|
||
require honnef.co/go/tools v0.4.3 | ||
|
||
require ( | ||
github.com/client9/misspell v0.3.4 | ||
github.com/kisielk/errcheck v1.2.0 | ||
github.com/reviewdog/reviewdog v0.9.12 | ||
golang.org/x/lint v0.0.0-20190409202823-959b441ac422 | ||
golang.org/x/tools v0.0.0-20190918214516-5a1a30219888 | ||
gotest.tools/gotestsum v0.3.5 | ||
honnef.co/go/tools v0.0.0-2019.2.1 | ||
github.com/BurntSushi/toml v1.2.1 // indirect | ||
golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a // indirect | ||
golang.org/x/mod v0.8.0 // indirect | ||
golang.org/x/sync v0.3.0 // indirect | ||
golang.org/x/sys v0.9.0 // indirect | ||
golang.org/x/tools v0.6.0 // indirect | ||
) |
Oops, something went wrong.