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
name: CI
on:
push:
branches:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
uses: sebastienrousseau/pipelines/.github/workflows/rust-ci.yml@47ed7767be5273aef0bbc60c6f6c16aba5fb6f59 # v0.0.2
with:
rust-version: 'stable'
run-coverage: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
security:
uses: sebastienrousseau/pipelines/.github/workflows/security.yml@47ed7767be5273aef0bbc60c6f6c16aba5fb6f59 # v0.0.2
with:
language: rust
# Override the v0.0.2 default of `medium`, which is rejected by
# actions/dependency-review-action (accepts low/moderate/high/critical).
# Track upstream fix at sebastienrousseau/pipelines.
severity-threshold: moderate
docs:
if: github.ref == 'refs/heads/main'
uses: sebastienrousseau/pipelines/.github/workflows/docs.yml@47ed7767be5273aef0bbc60c6f6c16aba5fb6f59 # v0.0.2
with:
type: rust
# rustdoc emits to the [lib] name with underscores, not the
# [package] name with hyphens. The pipelines workflow writes
# `url=/${redirect-crate}/` literally into target/doc/index.html,
# so this MUST be the underscored lib name (`http_handle`) or the
# root redirect lands on a 404. Match it to `[lib] name` in
# Cargo.toml whenever you change either.
redirect-crate: http_handle