Skip to content

πŸ“ˆ Get real-time stocks from TradingView

Update node.js.yml

Mathieu Colmon22e5781ed325
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
index 6ff2f8d..48ce163 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/node.js.yml
@@ -1,6 +1,3 @@
-# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
-# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
-
name: Tests
on:
@@ -8,16 +5,16 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
+ schedule:
+ - cron: '0 0 * *'
jobs:
- build:
-
+ Tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 17.x]
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
@@ -26,5 +23,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- - run: npm i
- - run: npm test
+ - name: Install dependencies
+ run: npm ci
+ - name: Run tests
+ run: npm test