42 lines
764 B
YAML
42 lines
764 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
typos:
|
|
name: "Typos"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Check typos
|
|
uses: crate-ci/typos@master
|
|
with:
|
|
config: ./typos.toml
|
|
|
|
build:
|
|
name: "Build"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: "Install Rust"
|
|
run: |
|
|
sudo apt update
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
sudo apt install --yes \
|
|
rustup
|
|
|
|
- name: Run clippy
|
|
working-directory: ./tetros
|
|
run: cargo clippy --all-targets --all-features
|
|
|
|
- name: Build
|
|
run: make
|