Skip to content

Commit

Permalink
ci:run checkout action before setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
bysomeone committed Sep 12, 2023
1 parent d68e901 commit e3cae48
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 24 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,32 @@ jobs:
name: unit-test
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: checkout
uses: actions/checkout@v2
- name: unit-test
run: make test

coverage:
name: coverage
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: checkout
uses: actions/checkout@v3

- name: ut coverage
run: make coverage
- name: cover report
Expand All @@ -71,15 +72,15 @@ jobs:
name: autotest
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: checkout
uses: actions/checkout@v3
- name: deploy
run: |
make build_ci
Expand All @@ -89,15 +90,15 @@ jobs:
name: ci_base
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: checkout
uses: actions/checkout@v3
- name: deploy
run: |
make docker-compose
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_cross2eth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
name: ci_cross2eth
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go
- name: checkout
uses: actions/checkout@v3
- name: deploy
run: |
export GOPATH=$HOME/go
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build_mix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ jobs:
name: ci_mix
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: checkout
uses: actions/checkout@v3

- name: download zk key file
run: |
pwd&&cd ./plugin/dapp/mix/cmd/
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build_paracross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ jobs:
name: ci_paracross
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: checkout
uses: actions/checkout@v3

- name: deploy
run: |
make docker-compose dapp=paracross
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
name: ci_relay
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Golang
uses: actions/setup-go@v2
with:
go-version-file: 'go.mod'
id: go
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: checkout
uses: actions/checkout@v2

- name: deploy
run: |
make docker-compose dapp=relay
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/manual_make_bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ jobs:
name: automake
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Golang env
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
id: go

- name: checkout repo
uses: actions/checkout@v3

- name: compile binary
run: make all-arch

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Set up Golang env
uses: actions/setup-go@v2
with:
go-version-file: 'go.mod'
id: go

- name: checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false # <--- this
- name: Set up Golang env
uses: actions/setup-go@v2
with:
go-version-file: 'go.mod'
id: go

- uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit e3cae48

Please sign in to comment.