glsl-lexer/.forgejo/workflows/uwu.yaml

48 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-11 14:51:10 +02:00
on:
push:
2024-07-11 15:00:27 +02:00
branches: [main]
2024-07-11 14:02:10 +02:00
jobs:
2024-07-11 14:51:10 +02:00
build:
2024-07-11 14:02:10 +02:00
runs-on: ubuntu-latest
steps:
2024-07-11 15:00:27 +02:00
- id: checkout
name: checkout
uses: actions/checkout@v4
- id: setup-rust
name: setup rust
2024-07-11 15:01:39 +02:00
uses: https://github.com/ningenMe/setup-rustup@v1.1.0
2024-07-11 15:00:27 +02:00
with:
rust-version: nightly
- id: cargo-build
name: cargo build
run: |
cargo build
shell: bash
2024-07-11 15:03:03 +02:00
- id: cargo-test
2024-07-11 15:24:39 +02:00
name: cargo test
2024-07-11 15:03:03 +02:00
run: |
cargo test --lib
shell: bash
2024-07-12 09:16:38 +02:00
clippy:
runs-on: ubuntu-latest
steps:
- id: checkout
name: checkout
uses: actions/checkout@v4
- id: setup-rust
name: setup rust
uses: https://github.com/ningenMe/setup-rustup@v1.1.0
with:
rust-version: nightly
- id: cargo-clippy
name: cargo clippy
run: |
cargo clippy --fix --lib -p glsl-lexer
shell: bash
- id: commit
name: commit
uses: https://github.com/EndBug/add-and-commit@v9
with:
author_name: "[Clippy]"
2024-07-12 02:07:39 +02:00