diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0a08a4ed..ac17170d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,23 +2,26 @@ name: build on: push: - branches: [ master ] + branches: + - '*' pull_request: - branches: [ master ] + branches: + - '*' jobs: build: - name: Build - runs-on: ubuntu-latest + strategy: + matrix: + go-version: [1.13.x] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} steps: - - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.13 - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Make - run: make all + - uses: actions/checkout@master + with: + fetch-depth: 1 + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Make + run: make all