2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-01 10:09:57 +00:00
pict-rs/.forgejo/workflows/check.yaml

38 lines
810 B
YAML
Raw Normal View History

2024-02-07 02:20:35 +00:00
on:
push:
pull_request:
branches:
- main
jobs:
2024-02-07 02:29:26 +00:00
checkout:
runs-on: docker
container:
2024-02-07 03:51:50 +00:00
image: docker.io/node:20-bookworm
2024-02-07 02:29:26 +00:00
steps:
2024-02-07 02:56:18 +00:00
- run: env
2024-02-07 02:33:05 +00:00
- uses: actions/checkout@v4
2024-02-07 02:49:39 +00:00
with:
url: https://git.asonix.dog
2024-02-07 02:29:26 +00:00
2024-02-07 02:20:35 +00:00
clippy:
2024-02-07 02:29:26 +00:00
needs: [checkout]
2024-02-07 02:20:35 +00:00
runs-on: docker
container:
image: docker.io/asonix/rust-builder:latest-linux-amd64
steps:
2024-02-07 02:49:39 +00:00
- run: |
env
rustup component add clippy
cargo clippy --no-default-features -- -D warnings
cargo clippy --no-default-features --features io-uring -- -D warnings
2024-02-07 02:20:35 +00:00
tests:
2024-02-07 02:29:26 +00:00
needs: [checkout]
2024-02-07 02:20:35 +00:00
runs-on: docker
container:
image: docker.io/asonix/rust-builder:latest-linux-amd64
steps:
- uses: actions/checkout@v4
2024-02-07 02:22:39 +00:00
- run: cargo test