23 lines
647 B
YAML
23 lines
647 B
YAML
on: [push]
|
|
jobs:
|
|
print-content:
|
|
runs-on: docker
|
|
container:
|
|
image: rust:slim
|
|
steps:
|
|
- name: install action dependencies
|
|
run: apt install --no-install-recommends --update -y nodejs
|
|
- name: setup toolchain
|
|
run: rustup component add rustfmt clippy
|
|
- name: checkout code
|
|
uses: actions/checkout@v6
|
|
- name: install dependencies
|
|
run: cargo install --path .
|
|
- name: cargo check
|
|
run: cargo check --all-targets
|
|
- name: format
|
|
run: cargo fmt -- --check
|
|
- name: lint
|
|
run: cargo clippy -- -Dwarnings
|
|
- name: test
|
|
run: cargo test
|