22 lines
814 B
YAML
22 lines
814 B
YAML
name: CI
|
|
# Gitflow: pushes to master and develop run here. Feature, release and hotfix
|
|
# branches are checked through their pull request, so they don't run twice.
|
|
# Tags aren't matched: release.yml runs the tests again for them.
|
|
on:
|
|
push:
|
|
branches: [master, develop]
|
|
pull_request:
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 22, cache: npm, cache-dependency-path: ui/package-lock.json }
|
|
- run: npm --prefix ui ci && npm --prefix ui run check && npm --prefix ui run build
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with: { components: clippy }
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo clippy --workspace --all-targets -- -D warnings
|
|
- run: cargo test --workspace
|