Skip to content

[Calad Release]

[Calad Release] #1165

name: Aelin CI
on:
push:
pull_request:
branches: [main, dev]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
- run: yarn install --immutable --immutable-cache --check-cache
lint:
needs: audit
# run only on audit success or audit skipped
if: always() && (needs.audit.result == 'success' || needs.audit.result == 'skipped')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
- run: yarn install --immutable --immutable-cache --check-cache
- run: yarn lint
foundry-tests:
runs-on: ubuntu-latest
env:
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install deps
run: forge install
- name: Run Tests without fork
run: forge test --no-match-contract NftCheck
- name: Run NftCheck tests with fork
run: forge test --match-contract NftCheck --fork-url ${ALCHEMY_URL}