name: Code quality on: [push] jobs: code_quality: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Set Node Version uses: actions/setup-node@v1.4.2 with: node-version: 14 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - name: Check Cache uses: actions/cache@v2 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - name: Install deps run: yarn --frozen-lockfile if: steps.yarn-cache.outputs.cache-hit != 'true' - name: Lint run: yarn lint - name: Typecheck run: yarn typecheck