Tests (with latest deps) #1346
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |