-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.33 KB
/
Copy pathci.yml
File metadata and controls
60 lines (48 loc) · 1.33 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
name: IntelliTest CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
services:
selenium:
image: selenium/standalone-chrome:latest
ports:
- 4444:4444
options: --shm-size=2gb
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore
- name: Wait for Selenium
run: |
for i in {1..30}; do
curl -sS http://localhost:4444/status | grep -q '"ready":true' && break
sleep 2
done
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
SELENIUM_REMOTE_URL: http://localhost:4444/wd/hub
run: dotnet test IntelliTest.csproj --no-build --configuration Release
continue-on-error: true
- name: Find HTML
run: find . -name "LivingDoc.html"
- name: Upload Report
if: always()
uses: actions/upload-artifact@v4
with:
name: LivingDoc
path: ./bin/Release/net9.0/TestResults/LivingDoc.html
retention-days: 30