Skip to content

Commit

Permalink
Merge pull request #19 from bnb-chain/fix/ci
Browse files Browse the repository at this point in the history
ci: fix go test job
  • Loading branch information
flywukong authored Mar 25, 2023
2 parents eee373b + b70cc50 commit f30bc74
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
permissions:
contents: read

env:
GOPRIVATE: github.com/bnb-chain
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_SECRET }}

concurrency:
group: go-ci-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -23,9 +27,6 @@ jobs:
os: [ ubuntu-latest ]
name: Golang Code Lint
runs-on: ${{ matrix.os }}
env:
GOPRIVATE: github.com/bnb-chain
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_SECRET }}
steps:
- uses: actions/setup-go@v3
with:
Expand Down Expand Up @@ -53,6 +54,8 @@ jobs:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_SECRET }}
steps:
- uses: actions/checkout@v3
- name: Setup GitHub Token
run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
Expand Down

0 comments on commit f30bc74

Please sign in to comment.