Skip to content

Commit

Permalink
Use Fastly CLI for building, not raw 'npm'.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpfleming committed Mar 5, 2024
1 parent 313dbcc commit 5f87bfa
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- uses: actions/cache@v3
- name: Setup Fastly CLI
uses: fastly/compute-actions/setup@v5
- name: Build and test
uses: fastly/compute-actions/build@v5
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: build
run: npm run build
verbose: true

0 comments on commit 5f87bfa

Please sign in to comment.