2019-10-01 22:08:40 +02:00
|
|
|
name: CI
|
|
|
|
|
2019-10-03 11:18:43 +02:00
|
|
|
on: [push, pull_request]
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
name: Node ${{ matrix.node_version }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-04-21 08:22:04 +02:00
|
|
|
node_version: [12, 14, 15, 16, 17, 18]
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-05-30 22:27:08 +02:00
|
|
|
- uses: actions/checkout@v3.0.2
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Use Node ${{ matrix.node_version }}
|
2022-01-10 22:20:47 +01:00
|
|
|
uses: actions/setup-node@v2.5.1
|
2019-10-01 22:08:40 +02:00
|
|
|
with:
|
2021-03-26 18:04:19 +01:00
|
|
|
node-version: ${{ matrix.node_version }}
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Install
|
2020-10-11 10:06:21 -07:00
|
|
|
run: yarn install --immutable
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Build
|
|
|
|
run: yarn code:build
|
2022-01-09 20:51:50 +01:00
|
|
|
- name: Format
|
|
|
|
run: yarn format:check
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
|
|
|
- name: Test
|
|
|
|
run: yarn test
|