Skip to content

Update to node 20 in tests #18

Update to node 20 in tests

Update to node 20 in tests #18

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allow job to be triggered manually.
workflow_dispatch:
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "ubuntu-latest" ]
node-version: [ '20' ]
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
steps:
- name: Acquire sources
uses: actions/checkout@v3
# https://github.com/actions/setup-node
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: |
package.json
yarn.lock
- name: Install dependencies
run: yarn install
- name: Build package (development)
run: yarn run build
- name: Verify package build (development)
run: ls -alF htdocs/static/assets/*.bundle.js
- name: Build package (production)
run: yarn run release
- name: Verify package build (production)
run: ls -alF htdocs/static/assets/*.bundle.min.js