-
-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (53 loc) · 1.54 KB
/
ci.yml
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1
DOTNET_ROLL_FORWARD: LatestMajor
permissions:
contents: write
pages: write
id-token: write
security-events: write
jobs:
ci:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Build
run: dotnet fsi build.fsx
- name: Analyzers
continue-on-error: true
run: dotnet fsharp-analyzers --project ./src/Ionide.Analyzers/Ionide.Analyzers.fsproj --project ./tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj --analyzers-path ./src/Ionide.Analyzers/bin/Release/net8.0 --report ./report.sarif
if: matrix.os == 'ubuntu-latest'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
if: matrix.os == 'ubuntu-latest'
with:
sarif_file: ./report.sarif
- name: Upload documentation
if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: ./output
deploy:
runs-on: ubuntu-latest
needs: ci
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4