Skip to content

Commit

Permalink
Update GitHub CI workflow
Browse files Browse the repository at this point in the history
This change updates the GitHub Action workflow used for CI, adding
names to the jobs as well as a terminal job that will simplify the
process of adding required status checks to branches.

Having a known terminal job that is consistent across all projects
makes it easy to add a required status check for a branch—one that
will not change as new intermediate jobs are added.
  • Loading branch information
whymarrh committed Sep 23, 2020
1 parent f4ad517 commit e33dcf9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/node.js.yml → .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Tests

on:
push:
Expand All @@ -11,19 +8,24 @@ on:

jobs:
build:

runs-on: ubuntu-latest

name: Build & test
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: npm run build --if-present
- run: npm test
- run: yarn build
- run: yarn test
all-jobs-pass:
name: All jobs pass
runs-on: ubuntu-20.04
needs:
- build
steps:
- uses: actions/checkout@v2

0 comments on commit e33dcf9

Please sign in to comment.