3 changed files with 2202 additions and 70 deletions
@ -1,29 +1,32 @@ |
|||||||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node |
# 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 |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions |
||||||
|
name: CI |
||||||
name: Node.js CI |
|
||||||
|
|
||||||
on: |
on: |
||||||
push: |
push: |
||||||
branches: [ master ] |
branches: [ master ] |
||||||
pull_request: |
pull_request: |
||||||
branches: [ master ] |
branches: [ master ] |
||||||
|
|
||||||
jobs: |
jobs: |
||||||
build: |
test: |
||||||
|
|
||||||
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
||||||
|
|
||||||
strategy: |
strategy: |
||||||
matrix: |
matrix: |
||||||
node-version: [12.x, 14.x, 16.x] |
node-version: [12.x, 14.x, 16.x] |
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ |
||||||
|
name: Tests (Node.js ${{ matrix.node-version }}) |
||||||
steps: |
steps: |
||||||
- uses: actions/checkout@v2 |
- name: Checkout the repository |
||||||
- name: Use Node.js ${{ matrix.node-version }} |
uses: actions/checkout@v2 |
||||||
uses: actions/setup-node@v1 |
- name: Install pnpm |
||||||
|
uses: pnpm/action-setup@v2.0.1 |
||||||
|
with: |
||||||
|
version: 6 |
||||||
|
- name: Install Node.js ${{ matrix.node-version }} |
||||||
|
uses: actions/setup-node@v2 |
||||||
with: |
with: |
||||||
node-version: ${{ matrix.node-version }} |
node-version: ${{ matrix.node-version }} |
||||||
- run: npm install |
cache: 'pnpm' |
||||||
- run: npm test |
- name: Install dependencies |
||||||
|
run: pnpm install |
||||||
|
- name: Run tests |
||||||
|
run: pnpm test |
Loading…
Reference in new issue