Repository navigation
93 lines (75 loc) · 2.17 KB
/
Copy pathci-pr.yml
File metadata and controls
93 lines (75 loc) · 2.17 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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.401
- name: Install Native AOT toolchain
run: sudo apt-get update && sudo apt-get install -y clang zlib1g-dev
- 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: Verify independently versioned SDK provider
run: make verify-sdk-provider
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: website/package-lock.json
- name: Test CLI debugger adapter
run: node --test tests/FScript.DebugAdapter.Tests/*Tests.js
- name: Test VS Code extension
working-directory: vscode-fscript
run: |
npm ci
npm test
- name: Run Fable JS tests
run: make fable-test
- 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