Tests Cron #695
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 Cron | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 9 * * 1-5" # At 09:00 AM, Monday through Friday | ||
permissions: | ||
issues: write | ||
content: read | ||
jobs: | ||
tests: | ||
name: Long running Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | ||
- name: Use Node.js | ||
uses: ./.github/actions/setup-node | ||
- name: Install and tests | ||
run: | | ||
yarn --frozen-lockfile --ignore-scripts | ||
yarn test:cron | ||
- name: Create Issue on Failed workflow | ||
if: ${{ failure() }} | ||
uses: dacbd/create-issue-action@cdb57ab6ff8862aa09fee2be6ba77a59581921c2 #v2.0.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: module-to-cdn configuration fails | ||
body: | | ||
### Context | ||
[Failed Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
[Codebase](https://github.com/${{ github.repository }}/tree/${{ github.sha }}) | ||
Workflow name - `${{ github.workflow }}` | ||
Job - `${{ github.job }}` | ||
status - `${{ job.status }}` | ||
assignees: jmfrancois |