docs: add common problems docs page #224
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: Rust | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: install just | |
uses: extractions/setup-just@v1 | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev glibc-source libc6 | |
- name: setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: "pnpm" # Set this to npm, yarn or pnpm. | |
- name: install frontend dependencies | |
run: pnpm install | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy | |
- name: Runs tests | |
run: just test | |
- name: Run lints | |
run: just check |