-
Notifications
You must be signed in to change notification settings - Fork 6.4k
132 lines (130 loc) · 4.91 KB
/
Copy pathnode_compat_test.generated.yml
File metadata and controls
132 lines (130 loc) · 4.91 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# GENERATED BY ./node_compat_test.ts -- DO NOT DIRECTLY EDIT
name: node_compat_test
on:
schedule:
- cron: 0 10 * * *
workflow_dispatch: {}
jobs:
test:
runs-on: '${{ matrix.runner }}'
timeout-minutes: 30
strategy:
matrix:
include:
- os: linux
runner: ubuntu-latest
shard_index: '0'
shard_total: '3'
shard_label: (1/3)
- os: linux
runner: ubuntu-latest
shard_index: '1'
shard_total: '3'
shard_label: (2/3)
- os: linux
runner: ubuntu-latest
shard_index: '2'
shard_total: '3'
shard_label: (3/3)
- os: windows
runner: windows-latest
shard_index: '0'
shard_total: '3'
shard_label: (1/3)
- os: windows
runner: windows-latest
shard_index: '1'
shard_total: '3'
shard_label: (2/3)
- os: windows
runner: windows-latest
shard_index: '2'
shard_total: '3'
shard_label: (3/3)
- os: darwin
runner: macos-latest
shard_index: '0'
shard_total: '3'
shard_label: (1/3)
- os: darwin
runner: macos-latest
shard_index: '1'
shard_total: '3'
shard_label: (2/3)
- os: darwin
runner: macos-latest
shard_index: '2'
shard_total: '3'
shard_label: (3/3)
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
submodules: false
- name: Clone node_compat suite submodule
run: git submodule update --init --recursive --depth=1 -- ./tests/node_compat/runner/suite
- name: Setup Rust
uses: dsherret/rust-toolchain-file@3551321aa44dd44a0393eb3b6bdfbc5d25ecf621
- name: Setup Deno
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282
with:
deno-version: canary
- name: Install Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: 3.11
- name: Run tests
env:
CARGO_ENCODED_RUSTFLAGS: ''
CI_SHARD_INDEX: '${{ matrix.shard_index }}'
CI_SHARD_TOTAL: '${{ matrix.shard_total }}'
run: deno task --cwd tests/node_compat/runner test --report
- name: Gzip the report
run: gzip tests/node_compat/report.json
- name: Upload the report to dl.deno.land
if: github.ref == 'refs/heads/main'
env:
AWS_ACCESS_KEY_ID: '${{ vars.S3_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '${{ secrets.S3_SECRET_ACCESS_KEY }}'
AWS_ENDPOINT_URL_S3: '${{ vars.S3_ENDPOINT }}'
AWS_DEFAULT_REGION: '${{vars.S3_REGION }}'
run: 'aws s3 cp tests/node_compat/report.json.gz s3://dl-deno-land/node-compat-test/$(date +%F)/report-${{matrix.os}}-${{matrix.shard_index}}.json.gz'
summary:
needs:
- test
if: always() && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
submodules: false
- name: Clone std submodule
run: git submodule update --init --recursive --depth=1 -- ./tests/util/std
- name: Setup Deno
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282
- name: Install Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: 3.11
- name: Add the day summary to the month summary
run: deno -A --config tests/config/deno.json tests/node_compat/add_day_summary_to_month_summary.ts
- name: Gzip the month summary
run: gzip tests/node_compat/summary.json -k
- name: Upload the month summary
env:
AWS_ACCESS_KEY_ID: '${{ vars.S3_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '${{ secrets.S3_SECRET_ACCESS_KEY }}'
AWS_ENDPOINT_URL_S3: '${{ vars.S3_ENDPOINT }}'
AWS_DEFAULT_REGION: '${{vars.S3_REGION }}'
run: 'aws s3 cp tests/node_compat/summary.json.gz s3://dl-deno-land/node-compat-test/summary-$(date +%Y-%m).json.gz'
- name: Post message to slack channel
env:
SLACK_TOKEN: '${{ secrets.NODE_COMPAT_SLACK_TOKEN }}'
SLACK_CHANNEL: '${{ secrets.NODE_COMPAT_SLACK_CHANNEL }}'
run: deno -A --config tests/config/deno.json tests/node_compat/slack.ts
# gagen:pin actions/checkout@v6 = de0fac2e4500dabe0009e67214ff5f5447ce83dd
# gagen:pin actions/setup-python@v6 = a309ff8b426b58ec0e2a45f0f869d46889d02405
# gagen:pin denoland/setup-deno@v2 = 667a34cdef165d8d2b2e98dde39547c9daac7282
# gagen:pin dsherret/rust-toolchain-file@v1 = 3551321aa44dd44a0393eb3b6bdfbc5d25ecf621