test: 📦 Add missing dependency and a CI check, to prevent oversights ;p

This commit is contained in:
Puria Nafisi Azizi
2022-02-26 20:28:55 +01:00
parent c6cfa34997
commit 1217dea5fc
3 changed files with 38 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 17]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
+17
View File
@@ -18,6 +18,7 @@
},
"devDependencies": {
"mocha": "^9.1.4",
"ramda": "^0.28.0",
"snowpack": "^3.8.8"
}
},
@@ -3888,6 +3889,16 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/ramda": {
"version": "0.28.0",
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==",
"dev": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/ramda"
}
},
"node_modules/randombytes": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
@@ -7981,6 +7992,12 @@
"integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",
"dev": true
},
"ramda": {
"version": "0.28.0",
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==",
"dev": true
},
"randombytes": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
+2 -1
View File
@@ -4,7 +4,7 @@
"description": "Experimental port of tidalcycles to javascript",
"main": "strudel.mjs",
"scripts": {
"test": "mocha"
"test": "mocha --colors"
},
"repository": {
"type": "git",
@@ -25,6 +25,7 @@
"homepage": "https://github.com/yaxu/strudel#readme",
"devDependencies": {
"mocha": "^9.1.4",
"ramda": "^0.28.0",
"snowpack": "^3.8.8"
},
"dependencies": {