File tree 3 files changed +18
-39
lines changed
3 files changed +18
-39
lines changed Original file line number Diff line number Diff line change 1
1
name : Test
2
2
3
3
on : [push]
4
- env :
5
- NODE_OPTIONS : --max_old_space_size=4096
6
4
7
5
jobs :
8
6
tsc :
9
7
runs-on : ubuntu-latest
10
- name : Typescript
8
+ name : TypeScript
11
9
steps :
12
- - uses : actions/checkout@v3
10
+ - uses : actions/checkout@v4
13
11
14
- - name : 💾 Cache Dependencies
15
- uses : actions/cache@v3
16
- with :
17
- path : ./node_modules
18
- key : ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
19
-
20
- - name : 🔨 Install Dependencies
21
- run : yarn install --frozen-lockfile --ignore-engines --ignore-scripts
12
+ - uses : ./.github/actions/setup-node
22
13
23
14
- name : 🧪 tsc
24
- run : yarn types --noEmit
15
+ run : yarn types
25
16
26
17
test :
27
18
runs-on : ubuntu-latest
28
- strategy :
29
- matrix :
30
- node : [22]
31
- name : Test with Node ${{ matrix.node }}
19
+ name : Test with Node
32
20
steps :
33
- - uses : actions/checkout@v3
34
- - uses : actions/setup-node@v3
35
- with :
36
- node-version : ${{ matrix.node }}
37
-
38
- - name : 💾 Cache Dependencies
39
- uses : actions/cache@v3
40
- with :
41
- path : ./node_modules
42
- key : ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
43
-
44
- - name : 🔨 Install Dependencies & Build
45
- run : |
46
- yarn install --frozen-lockfile --ignore-engines
47
- yarn build
21
+ - uses : actions/checkout@v4
22
+
23
+ - uses : ./.github/actions/setup-node
48
24
49
- - name : 🧪 Lint and Test with ${{ matrix.node }}
25
+ - name : 🧪 Lint and test with Node ${{ env.NODE_VERSION }}
50
26
env :
51
27
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
52
28
run : |
53
29
yarn lint
54
30
yarn coverage
55
31
yarn validate-translations
56
32
57
- - name : 🧪 Validate CommonJS bundle with ${{ matrix.node }}
33
+ - name : 🧪 Validate CommonJS bundle with Node ${{ env.NODE_VERSION }}
58
34
run : yarn validate-cjs
Original file line number Diff line number Diff line change 5
5
types : [opened, edited, synchronize, reopened]
6
6
7
7
jobs :
8
- lint :
8
+ pr-title :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : aslafy-z/conventional-pr-title-action@v3
12
- env :
13
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11
+ - uses : actions/checkout@v4
12
+
13
+ - uses : ./.github/actions/setup-node
14
+
15
+ - name : commitlint
16
+ run : echo "${{ github.event.pull_request.title }}" | npx commitlint
Original file line number Diff line number Diff line change 14
14
build :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/checkout@v3
17
+ - uses : actions/checkout@v4
18
18
- uses : preactjs/compressed-size-action@v2
19
19
with :
20
20
repo-token : ' ${{ secrets.GITHUB_TOKEN }}'
You can’t perform that action at this time.
0 commit comments