2021-01-12 11:44:38 +01:00
|
|
|
name: Node.js CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-12-23 14:06:53 +01:00
|
|
|
branches: [ main ]
|
2021-01-12 11:44:38 +01:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-05-05 22:18:35 +02:00
|
|
|
node-version: [14.x]
|
2021-01-12 11:44:38 +01:00
|
|
|
steps:
|
2022-03-25 10:18:06 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-01-12 11:44:38 +01:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2022-03-25 09:50:01 +01:00
|
|
|
uses: actions/setup-node@v3
|
2021-01-12 11:44:38 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2022-04-07 11:33:07 +02:00
|
|
|
- run: yarn install --frozen-lockfile
|
2021-04-07 09:04:48 +02:00
|
|
|
- run: yarn run test
|
2022-02-18 09:51:10 +01:00
|
|
|
- run: yarn run fmt:check
|