diff --git a/.github/workflows/deploy.yml1 b/.github/workflows/deploy.yml1 new file mode 100644 index 00000000..bbe5d3af --- /dev/null +++ b/.github/workflows/deploy.yml1 @@ -0,0 +1,39 @@ +name: Node.js CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '0 */4 * * *' + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: | + npm install -g pm2 + npm install + + - name: Start application with timeout + run: | + timeout 14520s npm run zokou +