Skip to content

Commit

Permalink
Update nightly workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaput committed Nov 26, 2024
1 parent 4991ffd commit 8c0a48b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 55 deletions.
59 changes: 5 additions & 54 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,17 @@ name: Nightly

on:
schedule:
# Runs the end of every day.
- cron: "0 0 * * *"

env:
RUSTUP_TOOLCHAIN: nightly
permissions:
contents: read

jobs:
rustfmt:
check-cairo-snippets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: scripts/rust_fmt.sh --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: >
scripts/clippy.sh
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: >
scripts/docs.sh
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master

starknet_sierra_validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: >
scripts/starknet_sierra_validate.sh https://papyrus-integration-mainnet.sw-dev.io/rpc/v0_7
- run: >
scripts/starknet_sierra_validate.sh https://papyrus-integration-sepolia-testnet.sw-dev.io/rpc/v0_7
vscode-cairo-check-cairo-snippets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "22.x"
- run: >
scripts/vscode-cairo-check-cairo-snippets.sh
- run: bin/check-cairo-snippets.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

npm --prefix vscode-cairo run gen-cairo-snippets
npm run gen-cairo-snippets

if [[ $(git diff --stat) != '' ]]; then
echo 'The corpus of Cairo snippets used in syntax highlighting test in vscode-cairo is out of date.'
Expand Down

0 comments on commit 8c0a48b

Please sign in to comment.