Repository navigation
84 lines (74 loc) · 2.64 KB
/
Copy pathnodejs.yml
File metadata and controls
84 lines (74 loc) · 2.64 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: 💎 NodeJS CI
# Nightly run of every test group on the current Node LTS and on the latest
# Node release, against the newest supported VS Code, on the same per-group
# suite template as Main CI. A scheduled failure opens (or updates) a
# tracking issue after 2 consecutive failures; a scheduled success closes it.
# Manual runs do not touch issues.
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
suites:
name: 🧪 ${{ matrix.group }} · node ${{ matrix.node }}
strategy:
fail-fast: false
matrix:
node: [lts/*, latest]
group: [01_general, activityBar, bottomBar, cli, debug, dialog, editor, menu, statusBar, system, webview, workbench, xsideBar]
permissions:
contents: read
uses: ./.github/workflows/template-suite.yaml
with:
test_group: ${{ matrix.group }}
versions: '["max"]'
nodejs: ${{ matrix.node }}
collect_coverage: false
notify:
name: ⚠️ Failure issue
if: ${{ failure() && github.event_name == 'schedule' }}
needs: suites
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- name: 👷🏻 Checkout Repository
uses: actions/checkout@v7
with:
sparse-checkout: .github/actions
- name: ⚠️ Open or update the failure issue
uses: ./.github/actions/failure-issue
with:
title: "⚠️ NodeJS CI nightly run failed"
labels: automation,bug
min-failures: 3
body: |
## ⚠️ NodeJS CI nightly run failed
- **Run**: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- **Head**: `${{ github.sha }}` on `${{ github.ref_name }}`
Open the run to see which test groups failed and on which Node version; screenshots and chromedriver logs are attached as artifacts. This issue receives a comment on every further nightly failure and is closed automatically when a run is green.
recover:
name: ✅ Close failure issue
if: ${{ success() && github.event_name == 'schedule' }}
needs: suites
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- name: 👷🏻 Checkout Repository
uses: actions/checkout@v7
with:
sparse-checkout: .github/actions
- name: ✅ Close the failure issue
uses: ./.github/actions/close-issue
with:
title: "⚠️ NodeJS CI nightly run failed"