diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1db15c1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: build + +on: + push: + branches: + - master + paths-ignore: + - .github/** + - .gitignore + - .whitesource + - codecov.yml + - README.md + pull_request: + paths-ignore: + - .github/** + - .gitignore + - .whitesource + - codecov.yml + - README.md + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - go: 1.15 + build-with: true + - go: 1.16 + build-with: false + continue-on-error: ${{ matrix.build-with == false }} + name: Build with ${{ matrix.go }} + env: + GO111MODULE: on + + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Vet + run: go vet ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 377ab8a..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Go - -on: - push: - branches: - - master - pull_request: - -jobs: - - build: - name: Build - runs-on: ubuntu-latest - steps: - - - name: Set up Go 1.13 - uses: actions/setup-go@v1 - with: - go-version: 1.13 - id: go - - - name: Check out code - uses: actions/checkout@v2 - - - name: Test - run: go vet ./... diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..dbcc857 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/VividCortex/mysqlerr + +go 1.12