-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (62 loc) · 1.67 KB
/
ci-pr.yml
File metadata and controls
75 lines (62 loc) · 1.67 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI PR
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
permissions:
contents: read
checks: write
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enforce unreleased changelog updates
env:
REQUIRE_CHANGELOG_ALWAYS: "true"
run: .github/scripts/check-unreleased-changelog.sh
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.201
- name: Restore
run: dotnet restore FScript.sln
- name: Build
run: dotnet build FScript.sln --configuration Release --no-restore
- name: Test
run: dotnet test FScript.sln --configuration Release --no-build --logger "trx" --results-directory TestResults
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: website/package-lock.json
- name: Build website
run: |
cd website
npm ci
npm run build
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-pr
path: TestResults/**/*.trx
if-no-files-found: warn
- name: Publish test report
if: always()
continue-on-error: true
uses: dorny/test-reporter@v2
with:
name: Test Results (PR)
path: TestResults/**/*.trx
reporter: dotnet-trx