Skip to content

Commit

Permalink
Add CI workflow to test building with prod fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z authored Mar 26, 2024
1 parent 88a3f67 commit f688c00
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x,21.x]

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'

- name: Install Python dependencies
run: pip install -r requirements.txt

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build with prod fixtures
env:
FETCH_FIXTURES_FROM: http://cloud.watonomous.ca/fixtures
run: |
npm ci
npm run build

0 comments on commit f688c00

Please sign in to comment.