From c44176f7f3795584819cca0440b3c34cafa61a03 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 20 Mar 2020 10:33:55 -0700 Subject: [PATCH] GitHub Actions: Split linting out, make other jobs dependent --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20a091f7efff..70aa93a49a2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,33 @@ name: CI on: [push] jobs: + lint: + runs-on: ubuntu-latest + + steps: + - run: lsb_release -a + - run: uname -a + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: '12.13.0' + - run: npm install -g yarn@1.22.0 + + - name: Cache node modules + uses: actions/cache@v1 + env: + cache-name: cache-node-modules + with: + path: node_modules + key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }}-${{ hashFiles('patches/*') }} + + - run: yarn install --frozen-lockfile + - run: yarn generate + - run: yarn lint + - run: yarn lint-deps + macos: + needs: lint runs-on: macos-latest steps: @@ -35,9 +61,11 @@ jobs: NODE_ENV: production linux: + needs: lint runs-on: ubuntu-latest steps: + - run: lsb_release -a - run: uname -a - uses: actions/checkout@v1 - uses: actions/setup-node@v1 @@ -70,6 +98,7 @@ jobs: NODE_ENV: production windows: + needs: lint runs-on: windows-latest steps: