Skip to content

Commit be90fdd

Browse files
Adjust other workflows
1 parent 63b7d6f commit be90fdd

File tree

3 files changed

+18
-39
lines changed

3 files changed

+18
-39
lines changed

.github/workflows/ci.yml

+10-34
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,34 @@
11
name: Test
22

33
on: [push]
4-
env:
5-
NODE_OPTIONS: --max_old_space_size=4096
64

75
jobs:
86
tsc:
97
runs-on: ubuntu-latest
10-
name: Typescript
8+
name: TypeScript
119
steps:
12-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1311

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
2213

2314
- name: 🧪 tsc
24-
run: yarn types --noEmit
15+
run: yarn types
2516

2617
test:
2718
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
node: [22]
31-
name: Test with Node ${{ matrix.node }}
19+
name: Test with Node
3220
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
4824

49-
- name: 🧪 Lint and Test with ${{ matrix.node }}
25+
- name: 🧪 Lint and test with Node ${{ env.NODE_VERSION }}
5026
env:
5127
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5228
run: |
5329
yarn lint
5430
yarn coverage
5531
yarn validate-translations
5632
57-
- name: 🧪 Validate CommonJS bundle with ${{ matrix.node }}
33+
- name: 🧪 Validate CommonJS bundle with Node ${{ env.NODE_VERSION }}
5834
run: yarn validate-cjs

.github/workflows/pr-check.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ on:
55
types: [opened, edited, synchronize, reopened]
66

77
jobs:
8-
lint:
8+
pr-title:
99
runs-on: ubuntu-latest
1010
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

.github/workflows/size.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- uses: preactjs/compressed-size-action@v2
1919
with:
2020
repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)