build.yml 562 Bytes
Newer Older
Jeremy Tuloup's avatar
Jeremy Tuloup committed
1
2
3
4
name: Build

on:
  push:
5
    branches: [main]
Jeremy Tuloup's avatar
Jeremy Tuloup committed
6
7
8
9
10
11
12
  pull_request:
    branches: '*'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install node
        uses: actions/setup-node@v2
        with:
          node-version: '14.x'
      - name: Build
        run: |
          yarn
          yarn run build
      - name: Lint
        run: |
          yarn run eslint:check
          yarn run prettier:check
      - name: Test
        run: |
          yarn run build:test
          yarn run test