Merge pull request #49 from payjp/nyamanaka/add_email_phone_parameter #108
Workflow file for this run
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
name: Build Test | |
on: push | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/checkout@master | |
with: | |
go-version: "1.21" | |
- name: lint | |
run: | | |
go install honnef.co/go/tools/cmd/staticcheck@latest && | |
$HOME/go/bin/staticcheck ./... | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.21', '1.20', '1.19', '1.18', '1.17', '1.16', '1.15', '1.14', '1.13' ] | |
name: "Test: go v${{ matrix.go }}" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Execute Test | |
run: go test -v ./v1 | |
- name: Compile | |
run: go build ./... | |
compile-only: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: | |
- '1.12' | |
- '1.11' | |
- '1.10' | |
- '1.9' | |
name: "Compile: go v${{ matrix.go }}" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Compile | |
run: go build ./v1/*.go |