-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 943 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: build-test
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- main
- releases/*
- dev
- feature/*
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
# Setup Node.js for both projects
- name: Setup Node 22.x
uses: actions/setup-node@v3
with:
node-version: 22.x
cache: npm
# Build and test the GraphQL server
- name: Install and Build GraphQL Server
working-directory: ./graphql-server
run: |
npm i
npm test
# Build and test the Svelte front-end app
- name: Install and Build Svelte Frontend
working-directory: ./front-end/svelte/international-nhl-standings
# npm test
run: |
npm i