-
-
Notifications
You must be signed in to change notification settings - Fork 24
54 lines (47 loc) · 1.66 KB
/
tests.yml
File metadata and controls
54 lines (47 loc) · 1.66 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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Run Tests
on:
push:
branches: [ "test" ]
workflow_dispatch:
concurrency:
group: test
cancel-in-progress: true
jobs:
test:
runs-on: [ self-hosted, Windows, X64 ]
timeout-minutes: 90
steps:
- name: Generate Github App token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.SUBMODULE_APP_ID }}
private-key: ${{ secrets.SUBMODULE_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: 'GeoBlazor'
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
- name: Run Tests
shell: pwsh
env:
USE_CONTAINER: true
ARCGIS_API_KEY: ${{ secrets.ARCGIS_TESTING_API_KEY }}
GEOBLAZOR_CORE_LICENSE_KEY: ${{ secrets.GEOBLAZOR_CORE_LICENSE_KEY }}
HTTP_PORT: 8082
HTTPS_PORT: 9445
run: |
dotnet ./build-tools/win-x64/GBTest.dll -c Release --cover --container --filter Core
- name: Upload test log
uses: actions/upload-artifact@v4
if: always()
with:
name: test-run-log
retention-days: 4
path: ./test/dymaptic.GeoBlazor.Core.Test.Automation/test-run.log