Skip to content

Commit 3cc7dcf

Browse files
DaveSkenderCopilot
andauthored
chore: Add .NET 9 targeting (#372)
Signed-off-by: Dave Skender <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 24ba725 commit 3cc7dcf

16 files changed

+475
-728
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Normalize line endings.
2-
* text=lf
2+
* text=auto eol=lf

.github/workflows/build-website.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install .NET SDK
1919
uses: actions/setup-dotnet@v4
2020
with:
21-
dotnet-version: "8.x"
21+
dotnet-version: "9.x"
2222
dotnet-quality: "ga"
2323

2424
- name: Build .NET solution
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Node
4040
uses: actions/setup-node@v4
4141
with:
42-
node-version: "20"
42+
node-version: "lts/*"
4343
cache: "npm"
4444
cache-dependency-path: client/package-lock.json
4545

.github/workflows/deploy-website.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install .NET SDK
2121
uses: actions/setup-dotnet@v4
2222
with:
23-
dotnet-version: "8.x"
23+
dotnet-version: "9.x"
2424
dotnet-quality: "ga"
2525

2626
- name: Define cache marker
@@ -79,7 +79,7 @@ jobs:
7979
- name: Setup Node
8080
uses: actions/setup-node@v4
8181
with:
82-
node-version: "20"
82+
node-version: "lts/*"
8383
cache: "npm"
8484
cache-dependency-path: client/package-lock.json
8585

.github/workflows/test-codeql.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
schedule:
11+
- cron: '51 14 * * 6'
12+
13+
jobs:
14+
analyze:
15+
name: analyze
16+
runs-on: 'ubuntu-latest'
17+
18+
permissions:
19+
security-events: write
20+
packages: read
21+
actions: read
22+
contents: read
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: ['javascript-typescript', 'csharp']
28+
29+
steps:
30+
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v3
36+
with:
37+
languages: ${{ matrix.language }}
38+
39+
- if: matrix.language == 'csharp'
40+
name: Install .NET SDK
41+
uses: actions/setup-dotnet@v4
42+
with:
43+
dotnet-version: "9.x"
44+
dotnet-quality: "ga"
45+
46+
- if: matrix.language == 'csharp'
47+
name: Build .NET solution
48+
run: |
49+
dotnet build server/ChartBackend.sln \
50+
--configuration Release \
51+
--property:ContinuousIntegrationBuild=true \
52+
-warnAsError
53+
54+
- if: matrix.language == 'javascript-typescript'
55+
name: Setup Node
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: "lts/*"
59+
cache: "npm"
60+
cache-dependency-path: client/package-lock.json
61+
62+
- if: matrix.language == 'javascript-typescript'
63+
name: Install NPM packages
64+
working-directory: ./client
65+
run: |
66+
npm install
67+
npm run build.prod
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v3
71+
with:
72+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)