-
Notifications
You must be signed in to change notification settings - Fork 2
76 lines (60 loc) · 1.49 KB
/
build-workflow.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Builds, runs tests, publishes artifacts
name: Build ForcesUnite
on:
workflow_dispatch:
pull_request:
types: [ready_for_review]
jobs:
build-api:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
include-prerelease: true
- name: Build with .NET
run: |
cd FU.API
dotnet build
shell: pwsh
# - name: Publish
# run: |
# cd FU.API
# dotnet publish
# shell: pwsh
# - name: Upload Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: .net-app
# path: D:\a\PalmettoProgrammers\PalmettoProgrammers\FU.API\FU.API\bin
- name: Test
run: |
cd FU.API
dotnet test
shell: pwsh
build-spa:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
cd FU.SPA
npm ci
- name: Run linter
run: |
cd FU.SPA
npm run lint
- name: Check formatting
run: |
cd FU.SPA
npm run format-check