Skip to content

Commit

Permalink
Testing: In Tests: Call CodeFixes without LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
Booksbaum committed Oct 8, 2023
1 parent bb8d0d7 commit 9610b43
Show file tree
Hide file tree
Showing 12 changed files with 8,424 additions and 28 deletions.
45 changes: 26 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- nightly
- FastCodeFixTests-testing
paths-ignore:
- ".github"
- ".vscode"
Expand All @@ -21,24 +22,28 @@ jobs:
timeout-minutes: 40 # we have a locking issue, so cap the runs at ~20m to account for varying build times, etc
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
dotnet-version: ["", "6.0.x", "7.0.x"]
# os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest]
# dotnet-version: ["", "6.0.x", "7.0.x"]
dotnet-version: ["7.0.x"]
CodeFixTests: ["lsp", "direct"]
TestSet: ["justCodeFix", "all"]
# these entries will mesh with the above combinations
include:
# just use what's in the repo
- global-json-file: "global.json"
dotnet-version: ""
include-prerelease: false
label: "repo global.json"
build_net7: false
test_tfm: net6.0
# latest 6.0 stable
- global-json-file: "global.json"
dotnet-version: "6.0.x"
include-prerelease: false
label: "6.0 stable"
build_net7: false
test_tfm: net6.0
# # just use what's in the repo
# - global-json-file: "global.json"
# dotnet-version: ""
# include-prerelease: false
# label: "repo global.json"
# build_net7: false
# test_tfm: net6.0
# # latest 6.0 stable
# - global-json-file: "global.json"
# dotnet-version: "6.0.x"
# include-prerelease: false
# label: "6.0 stable"
# build_net7: false
# test_tfm: net6.0
# latest 7.0 preview
- global-json-file: "global.json"
dotnet-version: "7.0.x"
Expand All @@ -50,7 +55,7 @@ jobs:

runs-on: ${{ matrix.os }}

name: Build on ${{matrix.os}} for ${{ matrix.label }}
name: Build on ${{matrix.os}} for ${{ matrix.label }} (CodeFixeTests=${{ matrix.CodeFixTests}}; TestSet=${{ matrix.TestSet}} )

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -78,8 +83,8 @@ jobs:
- name: Restore tools
run: dotnet tool restore

- name: Check format
run: dotnet build -t:CheckFormat
# - name: Check format
# run: dotnet build -t:CheckFormat

- name: Run Build
run: dotnet run --project build -t Build
Expand All @@ -91,3 +96,5 @@ jobs:
working-directory: test/FsAutoComplete.Tests.Lsp
env:
BuildNet7: ${{ matrix.build_net7 }}
TestSet: ${{ matrix.TestSet }}
CodeFixTests: ${{ matrix.CodeFixTests }}
Loading

0 comments on commit 9610b43

Please sign in to comment.