git-next/.forgejo/workflows/push-next.yml

39 lines
715 B
YAML
Raw Permalink Normal View History

name: Rust
on:
push:
branches: ["next"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Format
2024-05-16 20:00:29 +01:00
uses: https://git.kemitix.net/kemitix/rust@v0.2.7
with:
2024-05-16 20:00:29 +01:00
args: fmt --all -- --check
- name: Clippy
2024-05-16 20:00:29 +01:00
uses: https://git.kemitix.net/kemitix/rust@v0.2.7
with:
2024-05-16 20:00:29 +01:00
args: clippy -- -D warnings
- name: Build
2024-05-16 20:00:29 +01:00
uses: https://git.kemitix.net/kemitix/rust@v0.2.7
with:
2024-05-16 20:00:29 +01:00
args: build
- name: Test
2024-05-16 20:00:29 +01:00
uses: https://git.kemitix.net/kemitix/rust@v0.2.7
with:
2024-05-16 20:00:29 +01:00
args: test