aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 9b0afbe51839bc437e31bb3cf7ffe2c3bd6b0599 (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
name: Lint & build

on: [pull_request]

jobs:
    build:
        name: Lint & build
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v1
            - name: Cache dependencies
              uses: actions/cache@v1
              with:
                path: ./node_modules
                key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }}
                restore-keys: |
                    ${{ runner.OS }}-dependencies-${{ env.cache-name }}-
                    ${{ runner.OS }}-dependencies-
                    ${{ runner.OS }}-
            - name: Install dependencies
              run: yarn install
            - name: Run lint
              run: yarn lint
            - name: Build
              run: yarn build