Skip to content

Commit

Permalink
Add canary workflow
Browse files Browse the repository at this point in the history
Closes GH-182.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
ChristianMurphy committed Jan 2, 2022
1 parent 45b3d3f commit b0821ee
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
- pull_request
- push
jobs:
main:
name: '${{matrix.node}} on ${{matrix.os}}'
test:
name: test / unified / ${{matrix.node}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
Expand All @@ -22,3 +22,42 @@ jobs:
node:
- lts/erbium
- node
canary:
name: canary / ${{matrix.package}} / ${{matrix.node}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- name: checkout unified
uses: actions/checkout@v2
- name: setup node
uses: dcodeIO/setup-node-nvm@master
with:
node-version: ${{matrix.node}}
- name: setup unified
run: |
npm install -g npm
npm install
npm run build
- name: checkout ${{matrix.package}}
uses: actions/checkout@v2
with:
repository: ${{matrix.package}}
path: canary/${{matrix.package}}
- name: test ${{matrix.package}}
run: |
npm install
npx rimraf "node_modules/**/unified"
npm test
working-directory: canary/${{matrix.package}}
strategy:
fail-fast: false
max-parallel: 2
matrix:
os:
- ubuntu-latest
node:
- node
package:
- unifiedjs/unified-engine
- remarkjs/remark
- rehypejs/rehype
- retextjs/retext

0 comments on commit b0821ee

Please sign in to comment.