Clippy fixes #242
Workflow file for this run
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
name: Lints | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run clippy | |
working-directory: ./copperd | |
run: cargo clippy --all-targets --all-features | |
typos: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check typos | |
uses: crate-ci/typos@master | |
with: | |
config: ./dev/typos.toml | |
lychee: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore lychee cache | |
uses: actions/cache@v3 | |
with: | |
path: .lycheecache | |
key: lychee-cache | |
restore-keys: lychee-cache | |
#key: cache-lychee-${{ github.sha }} | |
#restore-keys: cache-lychee- | |
- name: Check links | |
id: lychee | |
uses: lycheeverse/lychee-action@v1 | |
with: | |
args: --config ./dev/lychee.toml . | |
fail: true | |
prettier: | |
runs-on: ubuntu-latest | |
container: node:18.20.4 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
working-directory: ./copperc | |
run: npm ci | |
- name: Run prettier | |
working-directory: ./copperc | |
run: npm run prettier | |
eslint: | |
runs-on: ubuntu-latest | |
container: node:18.20.4 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
working-directory: ./copperc | |
run: npm ci | |
- name: Run eslint | |
working-directory: ./copperc | |
run: npm run lint |