pict-rs/.forgejo/workflows/check.yaml

33 lines
725 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:
image: docker.io/_/node:20-alpine3.19
steps:
- uses: actionx/checkout@v4
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:22:39 +00:00
- run: rustup component add clippy
- run: cargo clippy --no-default-features -- -D warnings
- run: 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