Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Checks

Checks #10

Workflow file for this run

name: Checks
on:
push:
branches:
- master
pull_request:
schedule:
# At 16:00 on Wednesday
- cron: "0 16 * * 3"
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get scarb version
id: extractScarbVersion
run: |
snfoundry_version=$(curl -s https://api.github.com/repos/foundry-rs/starknet-foundry/releases/latest | grep tarball_url | awk -F '/' '{print $8}' | tr -d '",')
version=$(curl -s https://raw.githubusercontent.com/foundry-rs/starknet-foundry/$snfoundry_version/.tool-versions | awk '{print $2}')
echo "scarbVersion=$version" >> "$GITHUB_OUTPUT"
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ steps.extractScarbVersion.outputs.scarbVersion }}
- uses: foundry-rs/setup-snfoundry@v2
with:
starknet-foundry-version: latest
- run: snforge test