From 5f87bfaf2e97aed00222be89902875990028e5dd Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 5 Mar 2024 11:22:14 -0500 Subject: [PATCH] Use Fastly CLI for building, not raw 'npm'. --- .github/workflows/test.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c04171e..69916ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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