aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/nodejs.yml
blob: e76a579abfdc10d51f70222a982d10dd32314c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Node.js CI

on:
  push:
    branches: [v2]
  pull_request:
    branches: [v2]

  workflow_dispatch:

jobs:
  Test:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [14.x, 15.x]

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install dependencies
        run: yarn
      - name: Fix config
        run: cp src/config/example-options.ts src/config/options.ts
      - name: ESLint
        run: yarn lint
      - name: Test Build
        run: yarn build
      - name: Test formatting
        run: yarn prettier --check .