Skip to content

Commit

Permalink
Remove go-modules task. Fix git permissions error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso authored Oct 10, 2023
1 parent 9e5d9fa commit 6f2c5fa
Showing 1 changed file with 21 additions and 44 deletions.
65 changes: 21 additions & 44 deletions .github/workflows/blockchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,8 @@ jobs:
name: system-contracts
path: 'celo-monorepo/${{ env.CONTRACTS_BUILD_PATH }}'

go-modules:
name: Setup go

runs-on: ['self-hosted', 'org', '8-cpu']
container:
image: us-west1-docker.pkg.dev/devopsre/actions-runner-controller/blockchain:a7e4ddccb82035929fb25d2ed218156cc852c24d
options: --user root

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
if: false
with:
go-version: ${{ env.GO_VERSION }}
check-latest: false
cache: true

check-imports:
name: Check imports
needs: go-modules

runs-on: ['self-hosted', 'org', '8-cpu']
container:
Expand All @@ -141,7 +121,6 @@ jobs:
container:
image: us-west1-docker.pkg.dev/devopsre/actions-runner-controller/blockchain:a7e4ddccb82035929fb25d2ed218156cc852c24d
options: --user root
needs: go-modules

steps:
- name: Checkout repo
Expand All @@ -167,7 +146,6 @@ jobs:
image: us-west1-docker.pkg.dev/devopsre/actions-runner-controller/blockchain:a7e4ddccb82035929fb25d2ed218156cc852c24d
options: --user root
needs:
- go-modules
- prepare-system-contracts

steps:
Expand Down Expand Up @@ -229,7 +207,6 @@ jobs:
image: us-west1-docker.pkg.dev/devopsre/actions-runner-controller/blockchain:a7e4ddccb82035929fb25d2ed218156cc852c24d
options: --user root
needs:
- go-modules
- prepare-system-contracts

steps:
Expand Down Expand Up @@ -270,8 +247,6 @@ jobs:
container:
image: us-west1-docker.pkg.dev/devopsre/actions-runner-controller/blockchain:a7e4ddccb82035929fb25d2ed218156cc852c24d
options: --user root
needs:
- go-modules

steps:
- name: Checkout repo
Expand All @@ -283,6 +258,9 @@ jobs:
go-version: ${{ env.GO_VERSION }}
check-latest: false
cache: true
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Run and compress executables
run: |
make all
Expand All @@ -304,7 +282,6 @@ jobs:
pull-requests: write

needs:
- go-modules
- prepare-system-contracts

steps:
Expand Down Expand Up @@ -389,7 +366,6 @@ jobs:
timeout-minutes: 30

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -402,7 +378,8 @@ jobs:
go-version: ${{ env.GO_VERSION }}
check-latest: false
cache: true
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Restore system contracts
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -433,7 +410,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -449,7 +425,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down Expand Up @@ -488,7 +465,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -504,7 +480,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down Expand Up @@ -544,7 +521,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -560,7 +536,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down Expand Up @@ -599,7 +576,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -615,7 +591,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down Expand Up @@ -654,7 +631,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -670,7 +646,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down Expand Up @@ -709,7 +686,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -725,7 +701,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down Expand Up @@ -764,7 +741,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -780,7 +756,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down Expand Up @@ -819,7 +796,6 @@ jobs:
NODE_VERSION: 18

needs:
- go-modules
- prepare-system-contracts

steps:
Expand All @@ -835,7 +811,8 @@ jobs:
check-latest: false
cache: true
cache-dependency-path: geth/go.sum
- name: Configure git safe directories
# Workaround to error https://github.com/golangci/golangci-lint/issues/4033
- name: Configure git safe directories
run: git config --global --add safe.directory '*'
- name: Get monorepo commit
run: echo "MONOREPO_COMMIT=$(cat ./geth/monorepo_commit)" >> $GITHUB_ENV
Expand Down

0 comments on commit 6f2c5fa

Please sign in to comment.