From 70f3ff97b4b2c593234a393329855979baeac26e Mon Sep 17 00:00:00 2001 From: Katsuyuki Omuro Date: Fri, 8 Mar 2024 14:17:29 +0900 Subject: [PATCH] Use Fastly compute action for CI build --- .github/workflows/test.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 667d8ec..a6f7abe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,17 +7,17 @@ jobs: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - - name: Checkout code - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - - uses: actions/cache@v3 - 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 + - name: Checkout code + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '18' + - name: Setup Fastly CLI + uses: fastly/compute-actions/setup@v5 + - name: Install Dependencies + run: npm install + - name: Build Compute Package + uses: fastly/compute-actions/build@v5 + with: + verbose: true