-
-
Notifications
You must be signed in to change notification settings - Fork 22
25 lines (23 loc) · 904 Bytes
/
ci.yml
File metadata and controls
25 lines (23 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: CI
on: [push, pull_request]
jobs:
test:
name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 14, 12, 10, 8, 6]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Downgrade dev dependencies for Node <= 12
if: matrix.node-version == '6' || matrix.node-version == '8' || matrix.node-version == '10' || matrix.node-version == '12'
run: |
npm uninstall karma karma-jasmine jsdom karma-jsdom-launcher jasmine-core
npm install --save-dev karma@3 karma-jasmine@2 jsdom@11 karma-jsdom-launcher@9 jasmine-core@3
- run: npm test