This commit is contained in:
Elijah McMorris 2023-12-17 18:12:56 -08:00
parent 2edaeef042
commit e37d413372
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
14 changed files with 525 additions and 250 deletions

45
.github/workflows/nextest.yml vendored Normal file
View file

@ -0,0 +1,45 @@
# https://github.com/nextest-rs/reuse-build-partition-example
# https://keliris.dev/articles/setup-rust-github-actions
name: nextest
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: 0 0 * * 1
env:
CARGO_TERM_COLOR: always
jobs:
run-tests:
name: run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: rui314/setup-mold@v1
- name: install mold
run: sudo apt-get install -y musl-tools musl-dev libssl-dev clang mold
# https://github.com/moonrepo/setup-rust
- uses: moonrepo/setup-rust@v1
with:
bins: cargo-nextest
- name: Run tests
run: cargo nextest run -E "all() - test(get_api) - kind(bin)"
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: rui314/setup-mold@v1
- name: install mold
run: sudo apt-get install -y musl-tools musl-dev libssl-dev clang mold
- uses: moonrepo/setup-rust@v1
with:
components: clippy
- name: clippy
run: cargo clippy