chore: bump husky from 4.3.8 to 8.0.3 #88
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: CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
block-autosquash: | |
if: github.event.pull_request.draft == false | |
name: block-autosquash | |
runs-on: ubuntu-latest | |
steps: | |
- name: Block autosquash commits | |
uses: xt0rted/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
if: github.event.pull_request.draft == false | |
name: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache@v2 | |
id: npm-cache | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
- uses: actions/cache@v2 | |
with: | |
path: '**/build' | |
key: ${{ runner.os }}-build-${{ github.sha }} | |
- name: Install dependencies | |
if: steps.npm-cache.outputs.cache-hit != 'true' | |
run: npm ci --ignore-scripts | |
- name: Build artifacts | |
run: npm run build | |
test_unit: | |
name: test:unit | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache@v2 | |
id: npm-cache | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
- uses: actions/cache@v2 | |
with: | |
path: '**/build' | |
key: ${{ runner.os }}-build-${{ github.sha }} | |
- name: Run tests | |
run: npm run test |