2022-12-27 03:20:26 +01:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-08-24 16:03:03 +02:00
|
|
|
branches: [ "master" ]
|
2022-12-27 03:20:26 +01:00
|
|
|
pull_request:
|
2023-08-24 16:03:03 +02:00
|
|
|
branches: [ "master" ]
|
2022-12-27 03:20:26 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-12-27 08:25:11 +01:00
|
|
|
node-version: [18.x]
|
2022-12-27 03:20:26 +01:00
|
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
|
|
|
|
steps:
|
2022-12-30 13:28:45 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-12-27 03:20:26 +01:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2022-12-30 13:28:45 +01:00
|
|
|
uses: actions/setup-node@v3
|
2022-12-27 03:20:26 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'npm'
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build --if-present
|
2023-08-24 16:03:03 +02:00
|
|
|
- run: npm run test --if-present
|