build(deps): bump github/codeql-action from 2.2.4 to 2.21.8 #112
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: Validate PR | |
on: | |
pull_request: | |
branches: | |
- main | |
- next | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Lint & Test & Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
with: | |
node-version: '18' | |
# @see https://www.voorhoede.nl/en/blog/super-fast-npm-install-on-github-actions/ | |
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | |
id: cache | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install packages | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Run postinstall | |
if: steps.cache.outputs.cache-hit == 'true' | |
run: npm run --if-present postinstall && npm rebuild && npm run prepare --if-present | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: sudo npx playwright install-deps && npm run test:ci | |
- name: Build | |
run: npm run storybook:build | |
# vrt: | |
# name: Visual Regression Test | |
# runs-on: macos-12 | |
# steps: | |
# - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
# - uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
# with: | |
# node-version: '18' | |
# | |
# # @see https://www.voorhoede.nl/en/blog/super-fast-npm-install-on-github-actions/ | |
# - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | |
# id: cache | |
# with: | |
# path: ./node_modules | |
# key: ${{ runner.os }}-modules-${{ hashFiles('package-lock.json') }} | |
# | |
# - name: Install packages | |
# if: steps.cache.outputs.cache-hit != 'true' | |
# run: npm ci | |
# | |
# - name: Run postinstall | |
# if: steps.cache.outputs.cache-hit == 'true' | |
# run: npm run --if-present postinstall && npm rebuild && npm run prepare --if-present | |
# | |
# - name: Test | |
# run: npm run test:vrt | |
# | |
# - name: Archive visual diff results | |
# uses: actions/upload-artifact@v3 | |
# if: failure() | |
# with: | |
# name: visual-diffs | |
# path: screenshots | |
# retention-days: 7 |