You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amethyst/.github/workflows/test.yml

29 lines
519 B
YAML

name: Lint Code
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/crystal-linux/crystal:latest
steps:
- name: Prepare
run : |
pacman -Syu --needed --noconfirm
pacman -S --noconfirm rust
- name: Clippy
run: |
cargo clippy -- -D warnings
- name: Format
run: |
cargo fmt --check