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-11-02 22:52:53 +01:00
|
|
|
node_version: [14, 16, 18, 19]
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-13 20:11:09 +02:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
2019-10-01 22:08:40 +02:00
|
|
|
- name: Use Node ${{ matrix.node_version }}
|
2022-09-13 20:11:09 +02:00
|
|
|
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=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
|