2021-04-17 01:06:00 +03:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ '**' ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ $default-branch ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
2022-10-28 04:44:28 +03:00
|
|
|
node-version: [16.x]
|
2021-04-17 01:06:00 +03:00
|
|
|
|
|
|
|
steps:
|
2021-05-27 23:56:27 +03:00
|
|
|
- name: Checkout
|
2023-01-02 23:06:33 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-05-27 23:56:27 +03:00
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
2023-01-02 23:06:33 +03:00
|
|
|
uses: actions/setup-node@v3
|
2021-04-17 01:06:00 +03:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-05-27 23:56:27 +03:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build Library
|
|
|
|
run: npm run build
|
|
|
|
- name: Run Tests
|
|
|
|
run: npm test --if-present
|