diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 51a4e147..325a3fe1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,15 +20,21 @@ jobs: id-token: "write" actions: "read" steps: - - name: Set up Go 1.x - uses: actions/setup-go@v3 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: - go-version: ^1.21 + go-version-file: "go.mod" - name: Configure git for private modules env: GIT_AUTH_TOKEN: ${{ secrets.BOT_REPO_TOKEN }} run: git config --global url."https://speakeasybot:${GIT_AUTH_TOKEN}@github.com".insteadOf "https://github.com" - - name: Check out code - uses: actions/checkout@v3 - name: Test run: go test -v ./... + docker-build: + name: Docker Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0 + with: + push: false