-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (38 loc) · 1.06 KB
/
tests-latest.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tests (with latest deps)
on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: '0 23 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [16.x, 18.x, 19.x]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Test installation without package-lock.json
shell: bash
run: |
echo "| Continuous tests against latest releases of dependencies"
echo "| within minor versions ranges. Tests mimic a fresh install"
echo "| without a package-lock.json. Tests aim to identify problems"
echo "| caused by deps violating semantic versioning."
mv package-lock.json package-lock-ignored.json
npm install
cd ./test
npm install
cd ..
npm test
env:
CI: true