-
Notifications
You must be signed in to change notification settings - Fork 0
129 lines (113 loc) · 2.95 KB
/
javascript.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
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
name: JS
on:
push:
paths:
- 'javascript/**'
- '!javascript/README.rst'
schedule:
- cron: "0 0 1 * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nodejs:
strategy:
matrix:
version: [12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- os: macos-latest
version: 12
- os: macos-latest
version: 13
- os: macos-latest
version: 14
- os: macos-latest
version: 15
include:
- os: macos-13
version: 12
- os: macos-13
version: 13
- os: macos-13
version: 14
- os: macos-13
version: 15
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
cache: 'npm'
cache-dependency-path: 'javascript/package-lock.json'
- name: Install dependencies
run: make js_dependencies
- name: Run tests (serially)
if: ${{ matrix.version == 22 && matrix.os == 'ubuntu-latest' }}
run: make js_test COV=true
- name: Run tests (in parallel)
if: ${{ !(matrix.version == 22 && matrix.os == 'ubuntu-latest') }}
run: make js_test_auto COV=true
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: JavaScript
bun:
strategy:
matrix:
version:
- 1.1.21 # latest
- 1.1.20
- 1.1.15
- 1.1.10
- 1.1.5
- 1.1.0
- 1.0.36
- 1.0.30
- 1.0.25
- 1.0.20
- 1.0.15
- 1.0.10
- 1.0.5
- 1.0.0
- 0.8.1
- 0.8.0
- 0.7.3
- 0.7.0
- 0.6.14
- 0.6.10
os: [ubuntu-latest, macos-latest]
include:
- version: 1.1.21
os: macos-13
- version: 1.1.21
os: windows-latest
- version: 1.1.20
os: windows-latest
- version: 1.1.15
os: windows-latest
- version: 1.1.10
os: windows-latest
- version: 1.1.5
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install bun ${{ matrix.version }}
run: npm -g install bun@${{ matrix.version }}
- name: Install dependencies
run: make js_bun_dependencies
- name: Run tests (serially)
run: make js_bun_test ${{ contains(matrix.version, '0.5.') && ' ' || 'COV=true' }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: JavaScript