Skip to content

Commit 5f87bfa

Browse files
committed
Use Fastly CLI for building, not raw 'npm'.
1 parent 313dbcc commit 5f87bfa

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/test.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ jobs:
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
12+
- name: Setup Node
13+
uses: actions/setup-node@v3
1314
with:
1415
node-version: '18'
15-
- uses: actions/cache@v3
16+
- name: Setup Fastly CLI
17+
uses: fastly/compute-actions/setup@v5
18+
- name: Build and test
19+
uses: fastly/compute-actions/build@v5
1620
with:
17-
path: ~/.npm
18-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19-
restore-keys: |
20-
${{ runner.os }}-node-
21-
- run: npm ci
22-
- name: build
23-
run: npm run build
21+
verbose: true

0 commit comments

Comments
 (0)