|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.7 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, 10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
|
|---|
| 12 |
|
|---|
| 13 | steps:
|
|---|
| 14 | - uses: actions/checkout@v4
|
|---|
| 15 | with:
|
|---|
| 16 | persist-credentials: false
|
|---|
| 17 |
|
|---|
| 18 | - name: Use Node.js
|
|---|
| 19 | uses: actions/setup-node@v4
|
|---|
| 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 test
|
|---|
| 30 |
|
|---|
| 31 | test:
|
|---|
| 32 | runs-on: ubuntu-latest
|
|---|
| 33 |
|
|---|
| 34 | strategy:
|
|---|
| 35 | matrix:
|
|---|
| 36 | node-version: [18.x, 20.x, 22.x]
|
|---|
| 37 |
|
|---|
| 38 | steps:
|
|---|
| 39 | - uses: actions/checkout@v4
|
|---|
| 40 | with:
|
|---|
| 41 | persist-credentials: false
|
|---|
| 42 |
|
|---|
| 43 | - name: Use Node.js
|
|---|
| 44 | uses: actions/setup-node@v4
|
|---|
| 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:coverage
|
|---|
| 55 |
|
|---|
| 56 | types:
|
|---|
| 57 | runs-on: ubuntu-latest
|
|---|
| 58 |
|
|---|
| 59 | steps:
|
|---|
| 60 | - uses: actions/checkout@v4
|
|---|
| 61 | with:
|
|---|
| 62 | persist-credentials: false
|
|---|
| 63 |
|
|---|
| 64 | - name: Use Node.js
|
|---|
| 65 | uses: actions/setup-node@v4
|
|---|
| 66 | with:
|
|---|
| 67 | node-version: 22
|
|---|
| 68 |
|
|---|
| 69 | - name: Install
|
|---|
| 70 | run: |
|
|---|
| 71 | npm install
|
|---|
| 72 |
|
|---|
| 73 | - name: Run types tests
|
|---|
| 74 | run: |
|
|---|
| 75 | npm run test:typescript
|
|---|
| 76 |
|
|---|
| 77 | lint:
|
|---|
| 78 | runs-on: ubuntu-latest
|
|---|
| 79 |
|
|---|
| 80 | steps:
|
|---|
| 81 | - uses: actions/checkout@v4
|
|---|
| 82 | with:
|
|---|
| 83 | persist-credentials: false
|
|---|
| 84 |
|
|---|
| 85 | - name: Use Node.js
|
|---|
| 86 | uses: actions/setup-node@v4
|
|---|
| 87 | with:
|
|---|
| 88 | node-version: 22
|
|---|
| 89 |
|
|---|
| 90 | - name: Install
|
|---|
| 91 | run: |
|
|---|
| 92 | npm install
|
|---|
| 93 |
|
|---|
| 94 | - name: Lint
|
|---|
| 95 | run: |
|
|---|
| 96 | npm run lint
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.