diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 99c80db..5f68d15 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/Makefile b/Makefile index 3aab332..09ecb88 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,5 @@ lint: deps deps: go get golang.org/x/lint/golint + go install golang.org/x/lint/golint go mod download