This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
bump to typst v0.9.0 #347
Workflow file for this run
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: Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
rust: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
name: Rust ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Tests (default features) | |
run: cargo test --no-fail-fast | |
- name: Clippy (default features) | |
run: cargo clippy --all-targets -- -Dwarnings | |
- name: Tests (no default features) | |
run: cargo test --no-fail-fast --no-default-features | |
- name: Clippy (no default features) | |
run: cargo clippy --all-targets --no-default-features -- -Dwarnings | |
- name: Tests (native-tls) | |
run: cargo test --no-fail-fast --no-default-features -F remote-packages,native-tls | |
- name: Clippy (native-tls) | |
run: cargo clippy --all-targets --no-default-features -F remote-packages,native-tls -- -Dwarnings | |
- name: Formatting | |
run: cargo fmt --all --check | |
cargo-deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
vs-code-extension: | |
runs-on: ubuntu-latest | |
name: VS Code Extension | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install | |
working-directory: ./editors/vscode | |
- name: Compilation | |
run: npm run compile | |
working-directory: ./editors/vscode | |
- name: Type Checking | |
run: npm run check | |
working-directory: ./editors/vscode | |
- name: Tests | |
run: npm run test | |
working-directory: ./editors/vscode | |
- name: Linting and Formatting | |
run: | | |
npm run lint | |
npm run format-check | |
working-directory: ./editors/vscode | |
- name: Packaging | |
# raises an error with packaging issues, eg. `@types/vscode` out of sync | |
# with `engines.vscode` | |
run: npx vsce ls | |
working-directory: ./editors/vscode |