This repository was archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.76 KB
/
build.yml
File metadata and controls
61 lines (56 loc) · 1.76 KB
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
name: .NET Core
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0'
- name: Install dependencies
run: dotnet restore Gatekeeper.Server.Web/Gatekeeper.Server.Web.csproj
- name: Build
run: dotnet build --configuration Release Gatekeeper.Server.Web/Gatekeeper.Server.Web.csproj
- name: Test Gatekeeper.Server.Web
run: dotnet test Gatekeeper.Server.Web.Tests --collect:"XPlat Code Coverage" -r TestResults/ --settings Gatekeeper.Server.Web.Tests/coverlet.runsettings
- name: Test Gatekeeper.Client
run: dotnet test Gatekeeper.Client.Tests --collect:"XPlat Code Coverage" -r TestResults/
- uses: codecov/codecov-action@v1
with:
directory: TestResults/
fail_ci_if_error: true
verbose: true
- uses: actions/setup-node@v2.3.0
- name: NPM install
run: npm install
working-directory: ./Gatekeeper.Client/
- name: Install Gulp
run: sudo npm install --global gulp-cli --force
- name: Build CSS
run: gulp sass
working-directory: ./Gatekeeper.Client/
- name: Build JavaScript
run: gulp javascript
working-directory: ./Gatekeeper.Client/
- name: Perform Percy Tests
run: ./test.sh
working-directory: ./Gatekeeper.Server.Web.Tests.Visual
timeout-minutes: 5
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5