forked from bcgov/supreme-court-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.05 KB
/
main.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
45
46
name: API CI
on:
# PR targeting master is created or new commits are pushed
pull_request:
branches:
- master
types:
- opened
- synchronize
paths:
- "api/**"
# Manual trigger via GH Actions UI
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./api
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.101
# Lint errors exists from SCC and will be worked on separately.
- name: Lint
run: dotnet format --verify-no-changes --severity info
continue-on-error: true
- name: Install dependencies
run: dotnet restore
working-directory: ${{env.working-directory}}
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ${{env.working-directory}}
- name: Test
run: dotnet test --no-restore --verbosity normal
working-directory: ${{env.working-directory}}