Skip to content

Commit da2ce54

Browse files
committed
chore(actions): test twice a week
1 parent 02315e7 commit da2ce54

File tree

3 files changed

+34
-27
lines changed

3 files changed

+34
-27
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
name: Build
1+
name: 🧪 Build and Test
22

33
on: [push]
44

55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
timeout-minutes: 5
9+
name: 🧪 Build and Test
810

911
steps:
10-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1113
- name: Use Node.js
12-
uses: actions/setup-node@v4
14+
uses: actions/setup-node@v6
1315
with:
1416
node-version: 24
1517

16-
- name: Cache node modules
18+
- name: 💾 Cache node modules
1719
uses: actions/cache@v4
1820
with:
1921
path: node_modules
@@ -23,16 +25,16 @@ jobs:
2325
${{ runner.OS }}-build-
2426
${{ runner.OS }}-
2527
26-
- name: Install dependencies
28+
- name: 📦 Install dependencies
2729
run: yarn
2830

29-
- name: Build app
31+
- name: 🏗️ Build app
3032
run: yarn build
3133

32-
- name: Run tests
34+
- name: 🧪 Tests
3335
run: yarn test:coverage
3436

35-
- name: Upload coverage to Codecov
37+
- name: 📊 Upload coverage to Codecov
3638
uses: codecov/codecov-action@v5
3739
with:
3840
fail_ci_if_error: true

.github/workflows/publish.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: 🚀 Publish to NPM
22

33
on:
44
push:
@@ -8,16 +8,18 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 5
12+
name: 🚀 Publish to NPM
1113

1214
steps:
13-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1416
- name: Use Node.js
15-
uses: actions/setup-node@v4
17+
uses: actions/setup-node@v6
1618
with:
1719
node-version: 24
1820
registry-url: 'https://registry.npmjs.org'
1921

20-
- name: Cache node modules
22+
- name: 💾 Cache node modules
2123
uses: actions/cache@v4
2224
with:
2325
path: node_modules
@@ -27,29 +29,29 @@ jobs:
2729
${{ runner.OS }}-build-
2830
${{ runner.OS }}-
2931
30-
- name: Install dependencies
32+
- name: 📦 Install dependencies
3133
run: yarn
3234

33-
- name: Build app
35+
- name: 🏗️ Build app
3436
run: yarn build
3537

36-
- name: Run tests
38+
- name: 🧪 Tests
3739
run: yarn test:coverage
3840

39-
- name: Upload coverage to Codecov
41+
- name: 📊 Upload coverage to Codecov
4042
uses: codecov/codecov-action@v5
4143
with:
4244
fail_ci_if_error: true
4345
env:
4446
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4547

46-
- name: Publish NPM
48+
- name: 🚀 Publish NPM
4749
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
4850
run: cd dist && npm publish --access public
4951
env:
5052
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5153

52-
- name: Publish NPM BETA
54+
- name: 🚀 Publish NPM BETA
5355
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == true
5456
run: cd dist && npm publish --access public --tag beta
5557
env:

.github/workflows/test.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
name: Build && Test
1+
name: 🧪 Live test
22

33
on:
44
schedule:
55
- cron: '0 9 * * TUE'
6+
- cron: '0 18 * * FRI'
67

78
jobs:
89
build:
910
runs-on: ubuntu-latest
11+
timeout-minutes: 5
12+
name: 🧪 Live test
1013

1114
steps:
12-
- uses: actions/checkout@v4
13-
- name: Use Node.js
14-
uses: actions/setup-node@v4
15+
- uses: actions/checkout@v5
16+
- name: 🔧 Use Node.js
17+
uses: actions/setup-node@v6
1518
with:
1619
node-version: 24
1720

18-
- name: Cache node modules
21+
- name: 💾 Cache node modules
1922
uses: actions/cache@v4
2023
with:
2124
path: node_modules
@@ -25,16 +28,16 @@ jobs:
2528
${{ runner.OS }}-build-
2629
${{ runner.OS }}-
2730
28-
- name: Install dependencies
31+
- name: 📦 Install dependencies
2932
run: yarn
3033

31-
- name: Build app
34+
- name: 🏗️ Build app
3235
run: yarn build
3336

34-
- name: Build app
37+
- name: 🧪 Tests
3538
run: yarn test:coverage
3639

37-
- name: Upload coverage to Codecov
40+
- name: 📊 Upload coverage to Codecov
3841
uses: codecov/codecov-action@v5
3942
with:
4043
fail_ci_if_error: true

0 commit comments

Comments
 (0)