name: Build on: push: branches-ignore: - '**-wip' pull_request: branches: - "*" jobs: make: runs-on: ubuntu-latest # Pull requests from the same repository won't trigger this checks as they were already triggered by the push if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) strategy: matrix: go: [ '1.20', '1.21' ] steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - name: Build run: make - name: Test run: make test