-
Notifications
You must be signed in to change notification settings - Fork 55
48 lines (40 loc) · 1.39 KB
/
tests-cron.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
- name: Use Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: 18
registry-url: "https://registry.npmjs.org/"
scope: "@talend"
cache: "yarn"
- 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@ba4d1c45cccf9c483f2720cefb40e437f0ee6f7d #v1.2.1
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