main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | name: ci
|
---|
2 |
|
---|
3 | on: [push, pull_request]
|
---|
4 |
|
---|
5 | jobs:
|
---|
6 | legacy:
|
---|
7 | runs-on: ubuntu-latest
|
---|
8 |
|
---|
9 | strategy:
|
---|
10 | matrix:
|
---|
11 | node-version: ['0.10', '0.12', 4.x, 6.x, 8.x]
|
---|
12 |
|
---|
13 | steps:
|
---|
14 | - uses: actions/checkout@v3
|
---|
15 | with:
|
---|
16 | persist-credentials: false
|
---|
17 |
|
---|
18 | - name: Use Node.js
|
---|
19 | uses: actions/setup-node@v1
|
---|
20 | with:
|
---|
21 | node-version: ${{ matrix.node-version }}
|
---|
22 |
|
---|
23 | - name: Install
|
---|
24 | run: |
|
---|
25 | npm install --production && npm install tape
|
---|
26 |
|
---|
27 | - name: Run tests
|
---|
28 | run: |
|
---|
29 | npm run legacy
|
---|
30 |
|
---|
31 | test:
|
---|
32 | runs-on: ubuntu-latest
|
---|
33 |
|
---|
34 | strategy:
|
---|
35 | matrix:
|
---|
36 | node-version: [10.x, 12.x, 13.x, 14.x, 15.x, 16.x, 18.x, 20.x]
|
---|
37 |
|
---|
38 | steps:
|
---|
39 | - uses: actions/checkout@v3
|
---|
40 | with:
|
---|
41 | persist-credentials: false
|
---|
42 |
|
---|
43 | - name: Use Node.js
|
---|
44 | uses: actions/setup-node@v3
|
---|
45 | with:
|
---|
46 | node-version: ${{ matrix.node-version }}
|
---|
47 |
|
---|
48 | - name: Install
|
---|
49 | run: |
|
---|
50 | npm install
|
---|
51 |
|
---|
52 | - name: Run tests
|
---|
53 | run: |
|
---|
54 | npm run test
|
---|
55 |
|
---|
56 | types:
|
---|
57 | runs-on: ubuntu-latest
|
---|
58 |
|
---|
59 | steps:
|
---|
60 | - uses: actions/checkout@v3
|
---|
61 | with:
|
---|
62 | persist-credentials: false
|
---|
63 |
|
---|
64 | - name: Use Node.js
|
---|
65 | uses: actions/setup-node@v3
|
---|
66 | with:
|
---|
67 | node-version: 16
|
---|
68 |
|
---|
69 | - name: Install
|
---|
70 | run: |
|
---|
71 | npm install
|
---|
72 |
|
---|
73 | - name: Run types tests
|
---|
74 | run: |
|
---|
75 | npm run typescript
|
---|
Note:
See
TracBrowser
for help on using the repository browser.