chore(dev-deps): update dependency lint-staged to v15 - autoclosed #2534
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
name: Verify | |
on: [pull_request] | |
concurrency: | |
group: verify-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Get cache settings | |
id: cache-settings | |
run: | | |
echo "::set-output name=firebase-tools::$(yarn list -s --depth=0 --pattern firebase-tools | tail -n 1 | sed 's/.*@//g')" | |
- name: Cache Firebase Emulator Binaries | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/firebase/emulators | |
key: ${{ runner.os }}-${{ matrix.node-version }}-firebase-${{ steps.cache-settings.outputs.firebase-tools }} | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Check For Lint | |
run: yarn lint | |
- name: Run Unit Tests + Coverage | |
run: yarn test:cov | |
- name: Upload Test Coverage | |
uses: codecov/codecov-action@v3 | |
if: matrix.node-version == '16.x' | |
with: | |
fail_ci_if_error: false | |
- name: Run Build | |
run: yarn build | |
# Skipped due to Error: "npm ERR! Missing script: "size-build"" | |
# - name: Size Check | |
# uses: andresz1/[email protected] | |
# env: | |
# CI_JOB_NUMBER: 1 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Size Check | |
run: $(yarn bin)/size-limit |