Skip to content

Commit a1a90ba

Browse files
committed
Update CI pipeline to include env, cache, and type check
1 parent 35d686c commit a1a90ba

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/frontend-ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,22 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
env:
13+
NEXT_PUBLIC_CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
14+
NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
1215

1316
steps:
1417
- name: Checkout code
1518
uses: actions/checkout@v4
1619

20+
- name: Cache node modules
21+
uses: actions/cache@v3
22+
with:
23+
path: ~/.npm
24+
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
25+
restore-keys: |
26+
${{ runner.os }}-node-
27+
1728
- name: Set up Node.js
1829
uses: actions/setup-node@v4
1930
with:
@@ -22,9 +33,11 @@ jobs:
2233
- name: Install dependencies
2334
run: npm install
2435

36+
- name: Type check
37+
run: npx tsc --noEmit
38+
2539
- name: Run build
2640
run: npm run build
2741

2842
- name: Run linter
2943
run: npm run lint
30-

0 commit comments

Comments
 (0)