Skip to content

ops: add pull-request triggers for ci pipelines and prepend ci logic … #5

ops: add pull-request triggers for ci pipelines and prepend ci logic …

ops: add pull-request triggers for ci pipelines and prepend ci logic … #5

name: Enki - Build and Test Problems Service
on:
push:
paths:
- "enki-problems/**"
- ".github/workflows/enki-problems-ci.yaml"
pull_request:
paths:
- "enki-problems/**"
- ".github/workflows/enki-problems-ci.yaml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- name: Build
run: |
dotnet restore "enki-problems/src/EnkiProblems.HttpApi.Host/EnkiProblems.HttpApi.Host.csproj"
dotnet restore "enki-problems/test/EnkiProblems.Application.Tests/EnkiProblems.Application.Tests.csproj"
cd enki-problems
dotnet build --no-restore
- name: Test
run: |
cd enki-problems
dotnet test -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false