-
-
Notifications
You must be signed in to change notification settings - Fork 40
105 lines (97 loc) · 3.23 KB
/
Copy pathrun-tests.yml
File metadata and controls
105 lines (97 loc) · 3.23 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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests.
# On pull requests it runs a single, fast check against the latest supported three.js version.
# The full matrix across all supported three.js versions only runs once changes land on develop/releases/v3.x
# (i.e. after a PR is merged), to keep CI usage down on every PR push.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Runs All Unit tests
on:
push:
branches:
- develop
- releases
- v3.x
pull_request:
branches:
- develop
- releases
- v3.x
permissions:
contents: read
jobs:
pr-check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: "npm"
- run: npm ci
- name: Install three.js 0.185.1
run: npm install three@0.185.1 @types/three@0.185.4 --no-save
- run: npm run test:packaging
- run: npm run test:coverage
- run: npm run typeCheck
- run: npm run lint
matrix:
if: github.event_name == 'push'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# test against the min and max supported three.js versions (see #308)
include:
- three-version: 0.166.1
types-version: 0.166.0
- three-version: 0.167.1
types-version: 0.167.2
- three-version: 0.168.0
types-version: 0.168.0
- three-version: 0.169.0
types-version: 0.169.0
- three-version: 0.170.0
types-version: 0.170.0
- three-version: 0.171.0
types-version: 0.171.0
- three-version: 0.172.0
types-version: 0.172.0
- three-version: 0.173.0
types-version: 0.173.0
- three-version: 0.174.0
types-version: 0.174.0
- three-version: 0.175.0
types-version: 0.175.0
- three-version: 0.176.0
types-version: 0.176.0
- three-version: 0.177.0
types-version: 0.177.0
- three-version: 0.178.0
types-version: 0.178.1
- three-version: 0.179.1
types-version: 0.179.0
- three-version: 0.180.0
types-version: 0.180.0
- three-version: 0.181.2
types-version: 0.181.0
- three-version: 0.182.0
types-version: 0.182.0
- three-version: 0.183.2
types-version: 0.183.1
- three-version: 0.184.0
types-version: 0.184.1
- three-version: 0.185.1
types-version: 0.185.4
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: "npm"
- run: npm ci
- name: Install three.js ${{ matrix.three-version }}
run: npm install three@${{ matrix.three-version }} @types/three@${{ matrix.types-version }} --no-save
- run: npm run build
- run: npm run test:coverage
- run: npm run typeCheck
- run: npm run lint