This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
Update to not require node 12 #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
########################### | |
########################### | |
## Linter GitHub Actions ## | |
########################### | |
########################### | |
name: Lint Code Base | |
# | |
# Documentation: | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
# | |
############################# | |
# Start the job on all push # | |
############################# | |
on: | |
push: | |
branches: [staging,trying,dev,main] | |
# Remove the line above to run when pushing to master | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
############### | |
# Set the Job # | |
############### | |
jobs: | |
ci: | |
name: "fmt-ci" | |
needs: [ "format"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Done | |
run: exit 0 | |
format: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --check --verbose --manifest-path ./inject-lib/Cargo.toml --package inject-lib -- --config-path ./inject-lib/rustfmt.toml |