Skip to content

Configuration and documentation chores #6

Configuration and documentation chores

Configuration and documentation chores #6

Workflow file for this run

name: CI
on:
push: # Runs on push to any branch
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: '1.89.0'
components: rustfmt, clippy
cache: true
- name: Install npm dependencies
run: npm ci
- name: Run standards checks
run: npm run standards
env:
# For PRs: lint from base branch. For pushes: lint from previous commit
COMMITLINT_FROM: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
- name: Run cargo check
run: cargo check --workspace --all-targets
- name: Run cargo tests
run: cargo test --workspace