spot/.github/workflows/spot-quality.yml
Théo Barnouin 15cf412840
Some checks are pending
spot-quality / ci-check (push) Waiting to run
spot-quality / shellcheck (push) Waiting to run
first commit
2024-11-13 16:41:51 +01:00

36 lines
804 B
YAML

name: spot-quality
on:
push:
pull_request:
jobs:
ci-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
components: rustfmt
- name: Add empty config.rs
run: |
echo >> src/config.rs
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
shellcheck:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
sudo apt-get -y update && sudo apt-get -y install shellcheck
find $GITHUB_WORKSPACE -type f -and \( -name "*.sh" \) | xargs shellcheck