name: Build and test project on: push: branches: [master] pull-request: branches: [master] jobs: build: runs-on: debian-12 steps: - name: Checkout repo uses: actions/checkout@v4 - name: Extract Go version id: go-version run: | sed '/^go /!d; s/go /version=/' go.mod >>"$GITHUB_OUTPUT" - name: Setup Go uses: actions/setup-go@v5 with: go-version: ${{ steps.go-version.outputs.version }} - name: Run tests run: | make test