about summary refs log tree commit diff
path: root/.github/workflows/lint.yml
blob: 54c0ae83964324177a3274018164fa987fc365be (plain) (blame)
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: Lint

on:
  pull_request:
    branches:
      - main

jobs:
  linting:
    name: Run linters
    runs-on: ubuntu-latest
    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2
      - name: Yarn install
        run: yarn
      - name: Lint Reporter
        uses: wearerequired/lint-action@v2.2.0
        with:
          eslint: true
          prettier: true
      - name: Typescript & Lint check
        run: yarn lint
  testing:
    name: Run tests
    runs-on: ubuntu-latest
    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2
      - name: Yarn install
        run: yarn
      - name: Run tests
        run: |
          yarn test --forceExit