Implement NewAutomationProvider #2630
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Contracts | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
pull_request: | |
jobs: | |
contracts_run_ts_tests: | |
name: Run Typescript Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- name: Install Nix | |
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Install Cairo | |
uses: ./.github/actions/install-cairo | |
- name: Install starknet-devnet (via venv+pip) | |
run: nix develop -c pip install -r contracts/requirements.txt -c contracts/constraints.txt | |
- name: Test | |
run: nix develop -c make test-ts-contracts | |
contracts_run_cairo_tests: | |
name: Run Cairo Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | |
- name: Install Nix | |
uses: cachix/install-nix-action@5c11eae19dba042788936d4f1c9685fdd814ac49 # v19 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Install Cairo | |
uses: ./.github/actions/install-cairo | |
- name: Test | |
run: nix develop -c make test-cairo-contracts |