From 5730ad2170e7ab7797a687757191da984f33415d Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Fri, 25 Feb 2022 10:34:42 -0700 Subject: [PATCH] Add canary workflow Closes GH-958. Reviewed-by: Titus Wormer --- .github/workflows/main.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fdb14109d..3d44a2230 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,3 +20,42 @@ jobs: node: - lts/erbium - node + canary: + name: canary / ${{matrix.package}} / ${{matrix.node}} on ${{matrix.os}} + runs-on: ${{matrix.os}} + steps: + - name: checkout remark + uses: actions/checkout@v2 + - name: setup node + uses: dcodeIO/setup-node-nvm@master + with: + node-version: ${{matrix.node}} + - name: setup remark + 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 + for package in $(ls ../../packages); do + npx rimraf "node_modules/**/$package" + done + npm test + working-directory: canary/${{matrix.package}} + strategy: + fail-fast: false + max-parallel: 2 + matrix: + os: + - ubuntu-latest + node: + - lts/gallium + package: + - remarkjs/remark-gfm + - remarkjs/react-markdown