fayalite/.forgejo/workflows/test.yml

24 lines
763 B
YAML
Raw Normal View History

2024-09-22 15:30:05 -07:00
# SPDX-License-Identifier: LGPL-3.0-or-later
# See Notices.txt for copyright information
2024-06-11 22:13:07 -07:00
on: [push, pull_request]
jobs:
test:
runs-on: debian-12
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
with:
fetch-depth: 0
2024-09-22 15:30:53 -07:00
- run: |
scripts/check-copyright.sh
2024-06-11 22:13:07 -07:00
- run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.80.1
2024-06-11 22:15:23 -07:00
source "$HOME/.cargo/env"
echo "$PATH" >> "$GITHUB_PATH"
2024-06-11 22:20:22 -07:00
- uses: https://github.com/Swatinem/rust-cache@v2
2024-06-11 22:13:07 -07:00
with:
save-if: ${{ github.ref == 'refs/heads/master' }}
2024-06-13 13:27:57 -07:00
- run: cargo test
2024-07-19 17:14:09 -07:00
- run: cargo test --features=unstable-doc
- run: cargo doc --features=unstable-doc