Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'rwjblue/windows-ci'
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Feb 12, 2020
2 parents 7c14f6d + 96aaa21 commit 59bf2b5
Showing 1 changed file with 31 additions and 9 deletions.
40 changes: 31 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@ on:
- cron: '0 3 * * *' # daily, at 3am

jobs:
linting:
name: Linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x

- name: get yarn cache dir
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn lint

basic-tests:
name: Basic Tests
runs-on: ubuntu-latest
Expand All @@ -36,19 +60,18 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
- run: yarn lint
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn test

tests:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest

needs: [basic-tests]
needs: [linting, basic-tests]

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [10.x, 12.x, 13.x]

steps:
- uses: actions/checkout@v1
Expand All @@ -67,16 +90,15 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
continue-on-error: ${{ matrix['continue-on-error'] == true }}
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn test:all
continue-on-error: ${{ matrix['continue-on-error'] == true }}

feature-flags:
name: "Feature Flag: ${{ matrix.feature-flag }}"
name: "Feature: ${{ matrix.feature-flag }}"
runs-on: ubuntu-latest

needs: [basic-tests]
needs: [linting, basic-tests]

strategy:
matrix:
Expand All @@ -103,7 +125,7 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn test:all
env:
${{ matrix.feature-flag }}: true

0 comments on commit 59bf2b5

Please sign in to comment.