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