Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WORKFLOWS] Use nix in handler.run-ethereum-contracts-script.yml #1745

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add nix to handler.deploy-to-testnets.yml
  • Loading branch information
0xdavinchee committed Nov 8, 2023
commit 708d5bb13bb3bde924237bb15aa0c64c45b57ddc
10 changes: 6 additions & 4 deletions .github/workflows/handler.deploy-to-testnets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
DEFAULT_MNEMONIC: ${{ secrets.BUILD_AGENT_MNEMONIC }}
PROVIDER_URL_TEMPLATE: ${{ secrets.PROVIDER_URL_TEMPLATE }}

defaults:
run:
shell: nix develop -c bash -xe {0}

strategy:
fail-fast: false
matrix:
Expand All @@ -39,12 +43,10 @@ jobs:
if: ${{ github.event.inputs.only_network != '' && github.event.inputs.only_network != matrix.network }}
run: echo "DO_SKIP=1" >> "$GITHUB_ENV"

- name: Use Node.js 18.x
- uses: cachix/install-nix-action@v19
if: env.DO_SKIP != 1
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
if: env.DO_SKIP != 1
Expand Down