Skip to content

first draft

first draft #13

name: Integration CI
env:
ARCHIVE_LINK: https://github.com/starkware-libs/cairo/releases/download/v2.0.0/release-x86_64-unknown-linux-musl.tar.gz
ARCHIVE_NAME: cairo_binaries.zip
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3
- name: Step 2 - Install correct python version
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"
- name: Step 3 - Cloning repo
run: make clone-cairo
- name: Step 4 - Downloading binaries, unzipping them and making them available
working-directory: ./cairo
run: |
curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK
tar -xvf $ARCHIVE_NAME
mkdir -p target/release
mv cairo/bin/* target/release
- name: Step 5 - Installing requirements
run: pip3 install -r requirements.txt
- name: Step 6 - Start devnet in background
run: |
make devnet &
./scripts/wait-devnet-ready.sh
- name: Step 7 - Run integrations tests
run: |
yarn install --frozen-lockfile
make test-integration
format:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3
- name: Step 2 - Install project
run: yarn install --frozen-lockfile
- name: Step 3 - Check correct formatting
run: yarn format:check
lint:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3
- name: Step 2 - Install project
run: yarn install --frozen-lockfile
- name: Step 3 - Check correct linting
run: yarn lint:check