Add check workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: "32 4 * * 5" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Update rinja | |
run: | | |
git submodule init | |
git submodule sync | |
git submodule update --remote --no-recommend-shallow | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
targets: wasm32-unknown-unknown | |
- name: Install trunk | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Compile project | |
run: trunk build --debug | |
Clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Update rinja | |
run: | | |
git submodule init | |
git submodule sync | |
git submodule update --remote --no-recommend-shallow | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: clippy | |
run: cargo clippy -- -D warnings | |
Fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Update rinja | |
run: | | |
git submodule init | |
git submodule sync | |
git submodule update --remote --no-recommend-shallow | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- name: fmt | |
run: cargo fmt -- --check | |
Audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v1 |