feat: l1 execution #207
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: SX-Starknet Workflow | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
# solidity: | |
# strategy: | |
# fail-fast: true | |
# name: Forge tests | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Step 1 - Check out main branch | |
# uses: actions/checkout@v3 | |
# with: | |
# submodules: recursive | |
# - name: Step 2 - Install Foundry | |
# uses: foundry-rs/foundry-toolchain@v1 | |
# with: | |
# version: nightly | |
# - name: Step 3 - Check formatting | |
# working-directory: ./ethereum | |
# run: forge fmt --check | |
# - name: Step 4 - Build Solidity contracts | |
# working-directory: ./ethereum | |
# run: | | |
# forge --version | |
# forge build --sizes | |
# id: build | |
# - name: Step 5 - Run Forge tests | |
# working-directory: ./ethereum | |
# run: | | |
# forge test -vvv | |
# id: test | |
cairo: | |
strategy: | |
fail-fast: true | |
name: Cairo tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Check out main branch | |
uses: actions/checkout@v3 | |
# - name: Get yarn cache directory path | |
# id: yarn-cache-dir-path | |
# run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.16.0 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache YARN dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
yarn- | |
# - name: Setup yarn | |
# run: npm install -g yarn | |
- name: Install yarn dependencies | |
run: yarn install | |
# - name: Install dependencies | |
# run: | | |
# sudo apt install -y libgmp3-dev | |
# python -m pip install --upgrade pip | |
# - name: Step 2 = Install Cairo | |
# uses: software-mansion/setup-cairo@v1 | |
# - name: Step 2 - Install Scarb | |
# uses: software-mansion/setup-scarb@v1 | |
# with: | |
# scarb-version: 0.7.0 | |
# - name: Step 3 - Check formatting | |
# working-directory: ./starknet | |
# run: scarb fmt --check | |
# - name: Step 4 - Build Cairo contracts | |
# working-directory: ./starknet | |
# run: scarb build --verbose | |
# - name: Step 4 - Running Cairo tests | |
# working-directory: ./starknet | |
# run: scarb test --verbose |