Skip to content

Attribute hook render option #342

Attribute hook render option

Attribute hook render option #342

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches:
- '**'
push:
branches:
- main
jobs:
build_test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
# This uses the same name as the build-action so we can share the caches.
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- name: test
# Not using `npm test` since it rebuilds source which npm ci has already done
run: |
npm run build
npm run test