Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.16"]
go:
- "1.18"
- "1.17"
- "1.16"
fail-fast: false
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/kayac/ddl-maker
persist-credentials: false

- run: |
go version
echo "GO111MODULE=on" >> "$GITHUB_ENV"
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
shell: bash

- name: Test
run: make test
working-directory: src/github.com/kayac/ddl-maker
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ lint: deps

deps:
go get golang.org/x/lint/golint
go install golang.org/x/lint/golint
go mod download