Skip to content

Commit 7667031

Browse files
authored
add code check workflow, other workflows tweaks (#1539)
1 parent 1ab82ae commit 7667031

File tree

5 files changed

+34
-10
lines changed

5 files changed

+34
-10
lines changed

.github/workflows/test-deploy.yml renamed to .github/workflows/code-deploy-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Test deploy
1+
name: "[CODE] Deploy preview website"
22

33
on:
44
pull_request:
5-
types: [ labeled, synchronize ]
5+
types: [labeled, synchronize]
66

77
jobs:
88
build:

.github/workflows/deploy-to-production.yml renamed to .github/workflows/code-deploy-production.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Deploy to production
1+
name: "[CODE] Deploy production website"
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
paths-ignore:
7-
- 'react-native-libraries.json'
7+
- react-native-libraries.json
88
schedule:
99
# Run every 3 hours - https://crontab.guru/#0_*/3_*_*_*
1010
- cron: '0 */3 * * *'
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "[CODE] Lint and test"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
paths-ignore:
8+
- react-native-libraries.json
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Node.js 22
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '22'
19+
- name: Install dependencies
20+
run: yarn
21+
- name: TSC
22+
run: yarn tsc
23+
- name: Lint
24+
run: yarn lint
25+
- name: Build Next app
26+
run: yarn next build

.github/workflows/test-and-validate.yml renamed to .github/workflows/data-test-and-validate.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test and Validate
1+
name: "[DATA] Test and Validate"
22

33
on:
44
push:
@@ -18,8 +18,6 @@ jobs:
1818
node-version: '22'
1919
- name: Install dependencies
2020
run: yarn
21-
- name: Lint
22-
run: yarn lint
2321
- name: Validate react-native-libraries.json
2422
run: yarn data:validate
2523
- name: Test react-native-libraries.json

.github/workflows/cleanup-data-blobs.yml renamed to .github/workflows/vercel-cleanup-data-blobs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Cleanup data blobs
1+
name: "[VERCEL] Cleanup data blobs"
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
schedule:
77
# Run once a week on Thursday at midnight - https://crontab.guru/#0_0_*_*_2
88
- cron: '0 0 * * 2'

0 commit comments

Comments
 (0)