Skip to content

Commit

Permalink
ci(node.js.yml): schedule Actions
Browse files Browse the repository at this point in the history
Added a Schedule Action every 5 hours to run.
  • Loading branch information
Yuri-Lima committed Nov 24, 2022
1 parent 679e6d3 commit 906c7bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# Os: ubuntu-latest, windows-latest and macos-latest

name: Node.js CI

Expand All @@ -8,6 +8,9 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "* */5 * * *" # every 5 hours
workflow_dispatch:

jobs:
build:
Expand All @@ -17,7 +20,7 @@ jobs:
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down

0 comments on commit 906c7bc

Please sign in to comment.