Merge pull request #1062 from MTES-MCT/issue/2275 #2643
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: "check-lint" | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: "0" | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16.14.0' | |
- name: Get yarn cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: yarn-cache | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install --silent | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
- run: yarn lint:all |