Skip to content

Commit

Permalink
checkout the head of pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Apr 26, 2023
1 parent 7a53bd3 commit 3ef4d88
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -18,13 +18,16 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- run: go version

- uses: actions/checkout@v3
- name: build
run: |
go get ./...
Expand All @@ -39,11 +42,11 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Go
uses: actions/setup-go@v4
- name: finish
run: |
go run github.com/mattn/goveralls -parallel-finish
Expand Down

0 comments on commit 3ef4d88

Please sign in to comment.