Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on the CI build for PRs #204

Merged
merged 7 commits into from
Nov 15, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name: build

on:
workflow_dispatch:
push:
branches:
- main
gdziadkiewicz marked this conversation as resolved.
Show resolved Hide resolved
pull_request:

jobs:

Expand All @@ -31,6 +35,10 @@ jobs:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1

steps:

- name: Checkout repository
Expand All @@ -47,11 +55,20 @@ jobs:
with:
node-version: 20

- name: Build and test
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLIE_TELEMETRY_OPTOUT: 1
- name: Setup non-windows build
if: matrix.os != 'windows-latest'
run: |
echo "DOTNET_CORE=1" >> $GITHUB_ENV

- name: Install build dependencies
run: |
npm update -g npm --no-progress
npm install --no-progress
npm test

- name: Build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: build step is not required - npm test will build as a pre-requisite

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true, but it's easier to tell what failed when the phases are separated.

run: |
npm run build

- name: Test
run: |
npm test
Loading