-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 2.04 KB
/
Copy pathci.yml
File metadata and controls
53 lines (50 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This workflow is managed by gh actions-lock.
# SPDX-License-Identifier: MPL-2.0
# This workflow is managed by gh actions-lock.
# This workflow is managed by gh actions-lock.
# This workflow is managed by gh actions-lock.
#
# CI for the implemented part of this repository: the Rust PDF core.
#
# History (issue #67): this file used to carry `core-fill-tests` and
# `extension-build`, which ran `deno task test:core-fill`, `deno task build:wasm`
# and `deno task build`. Those tasks lived in deno.json, which #43 deleted on
# 2026-08-24; the two jobs were red on every run from then on and were RETIRED
# by #71. `test:core-fill` was `cargo test ... fill_blocks_`, a strict subset of
# the `rust-core` job below. The extension bundle has no toolchain in this
# checkout (see README "Current status"); when one lands, add its build job
# here and record it in docs/ci/CHECK-DETERMINATIONS.adoc.
#
# There is deliberately NO lockfile-verification job in this file. A job that
# checks actions.lock from inside a workflow that GitHub refuses to start when
# actions.lock is out of sync can never report the fault it exists to catch.
# That check lives in lock-sync-gate.yml, which carries no `uses:` at all and
# is therefore immune to the failure it detects.
name: CI
permissions:
actions: read
contents: read
on:
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-core:
name: Rust core (tests, formatting, lint)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7.0.1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --manifest-path rust/pdftool_core/Cargo.toml -- --check
- name: Run unit tests
run: cargo test --manifest-path rust/pdftool_core/Cargo.toml --locked
- name: Run Clippy
run: cargo clippy --manifest-path rust/pdftool_core/Cargo.toml --locked --all-targets -- -D warnings