2024-08-11 06:15:31 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- next
|
2024-05-16 17:52:20 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: docker
|
2024-09-16 16:25:07 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- name: stable
|
|
|
|
- name: nightly
|
2024-09-17 08:51:09 +00:00
|
|
|
- name: v1.81.0
|
2024-09-16 16:25:07 +00:00
|
|
|
|
2024-05-16 17:52:20 +00:00
|
|
|
steps:
|
2024-05-16 18:53:35 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
2024-09-17 14:01:39 +00:00
|
|
|
- name: Machete
|
2024-11-29 05:10:57 +00:00
|
|
|
uses: https://git.ragarock.moe/silvana/setup-rust@v2.4.1
|
2024-09-17 14:01:39 +00:00
|
|
|
with:
|
|
|
|
args: cargo machete
|
|
|
|
|
2024-09-17 09:58:08 +00:00
|
|
|
- name: Format
|
2024-11-29 05:10:57 +00:00
|
|
|
uses: https://git.ragarock.moe/silvana/setup-rust@v2.4.1
|
2024-09-17 09:58:08 +00:00
|
|
|
with:
|
|
|
|
args: ${{ matrix.toolchain.name }} cargo fmt --check
|
|
|
|
|
|
|
|
- name: Clippy
|
2024-11-29 05:10:57 +00:00
|
|
|
uses: https://git.ragarock.moe/silvana/setup-rust@v2.4.1
|
2024-09-17 09:58:08 +00:00
|
|
|
with:
|
|
|
|
args: ${{ matrix.toolchain.name }} cargo clippy
|
|
|
|
|
2024-09-17 07:34:04 +00:00
|
|
|
- name: Test
|
2024-11-29 05:10:57 +00:00
|
|
|
uses: https://git.ragarock.moe/silvana/setup-rust@v2.4.1
|
2024-05-16 17:52:20 +00:00
|
|
|
with:
|
2024-09-16 16:25:07 +00:00
|
|
|
args: ${{ matrix.toolchain.name }} cargo test
|
2024-05-16 18:54:56 +00:00
|
|
|
|
2024-09-17 07:34:04 +00:00
|
|
|
- name: Build
|
2024-11-29 05:10:57 +00:00
|
|
|
uses: https://git.ragarock.moe/silvana/setup-rust@v2.4.1
|
2024-05-16 18:47:20 +00:00
|
|
|
with:
|
2024-09-16 16:25:07 +00:00
|
|
|
args: ${{ matrix.toolchain.name }} cargo build
|
2024-05-16 18:54:56 +00:00
|
|
|
|
2024-09-17 07:34:04 +00:00
|
|
|
- name: Run
|
2024-11-29 05:10:57 +00:00
|
|
|
uses: https://git.ragarock.moe/silvana/setup-rust@v2.4.1
|
2024-05-16 18:54:56 +00:00
|
|
|
with:
|
2024-09-16 16:25:07 +00:00
|
|
|
args: ${{ matrix.toolchain.name }} cargo run
|