Skip to content

Merge pull request #128 from argentlabs/update #22

Merge pull request #128 from argentlabs/update

Merge pull request #128 from argentlabs/update #22

Workflow file for this run

name: Integration CI
on: push
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Check out main branch
uses: actions/checkout@v3
- name: Setup Scarb
uses: software-mansion/[email protected]
- name: Install project
run: yarn install --frozen-lockfile
- name: Start devnet in background
run: |
scarb run start-devnet &
./scripts/wait-devnet-ready.sh
- name: Run integration tests
run: scarb --release build && tsc && yarn mocha tests-integration/*.test.ts --forbid-only --forbid-pending
gas-report:
runs-on: ubuntu-latest
steps:
- name: Check out main branch
uses: actions/checkout@v3
- name: Setup Scarb
uses: software-mansion/[email protected]
- name: Install project
run: yarn install --frozen-lockfile
- name: Start devnet in background
run: |
scarb run start-devnet &
./scripts/wait-devnet-ready.sh
- name: Gas report
run: scarb run profile --check
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 prettier --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 eslint .