Skip to content

Commit

Permalink
Use Fastly compute action for CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
harmony7 committed Mar 8, 2024
1 parent 5dfb2a5 commit 7f957c0
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 exec js-compute-runtime ./src/index.js ./bin/main.wasm
- 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 7f957c0

Please sign in to comment.