en/.forgejo/workflows/check.yaml

24 lines
569 B
YAML

on: [push]
jobs:
print-content:
runs-on: docker
container:
image: rust:slim
steps:
- name: checkout code
run: |
apt --update -y install git
pwd; ls -la
git clone https://codeberg.org/jutty/en .
ls -la
- name: formatting
run: |
pwd; ls -la
rustup component add rustfmt
cargo fmt -- --check
- name: lints
run: cargo clippy -- -Dwarnings
- name: cargo
run: cargo check --all-targets
- name: test
run: cargo test