55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
paths:
|
|
- src/**
|
|
- tests/**
|
|
- static/graph.toml
|
|
- .forgejo/**
|
|
- Cargo.toml
|
|
- Cargo.lock
|
|
jobs:
|
|
verify:
|
|
runs-on: docker
|
|
timeout-minutes: 20
|
|
container:
|
|
image: rust:slim
|
|
steps:
|
|
- name: Install action dependencies
|
|
run: apt-get install --no-install-recommends --update -y nodejs curl git
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-tags: true
|
|
|
|
- name: Setup Rust toolchain
|
|
run: |
|
|
rustup component add llvm-tools-preview
|
|
rustup component add --toolchain nightly rustfmt clippy
|
|
rustup target add x86_64-unknown-linux-gnu
|
|
rustup target add x86_64-unknown-linux-musl
|
|
|
|
- name: Setup additional tooling
|
|
run: .forgejo/workflows/setup-tools.sh
|
|
|
|
- name: Setup permissions for ci user
|
|
run: |
|
|
useradd -m ci && chown -R ci:ci .
|
|
git config --global --add safe.directory "$PWD"
|
|
|
|
- name: Build
|
|
run: just ci build
|
|
|
|
- name: Format
|
|
run: just ci format-assess
|
|
- name: Lint
|
|
run: just ci lint-assess
|
|
- name: Cargo check
|
|
run: just ci check
|
|
- name: Test
|
|
run: just ci test
|
|
- name: Assess test coverage
|
|
run: just ci cover-assess
|
|
|