Solve ToB-UNI4-3 without restricting sync (#886) #3670
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
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Lint | |
run: forge fmt --check | |
- uses: actions/cache@v2 | |
name: Configure npm caching | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Check code formatting | |
run: |- | |
npx prettier --check . |