Skip to content

Commit

Permalink
Merge pull request #10 from fastly/kats/ci
Browse files Browse the repository at this point in the history
Use Fastly compute action for CI build
  • Loading branch information
harmony7 authored Mar 11, 2024
2 parents 162e6b0 + 70f3ff9 commit 4115121
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4115121

Please sign in to comment.