Skip to content

Updates for v11

Updates for v11 #23

name: Test and Build
on:
pull_request:
branches: ['main', 'release/latest', 'release/next', 'release/alpha', 'release/beta']
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Use build cache
id: cache
uses: actions/cache@v3
with:
path: dist
key: ${{ hashFiles('./yarn.lock', './src/**', './rollup.config.js', './jest.config.js') }}
- name: Create a new build
if: steps.cache.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
yarn test
yarn build