From a3a4a3981aa9c256e73aa644c918d5fe7296985b Mon Sep 17 00:00:00 2001 From: Peter Matseykanets Date: Sat, 24 Apr 2021 13:25:48 -0400 Subject: [PATCH] build: Update build workflow --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ .github/workflows/go.yml | 26 -------------------- 2 files changed, 47 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/go.yml 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 ./...