forked from dafny-lang/dafny
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.24 KB
/
Copy pathlanguage-server.yml
File metadata and controls
42 lines (40 loc) · 1.24 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
name: Test Language Server
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-16.04
strategy:
fail-fast: false
env:
testPath: Source/DafnyLanguageServer.Test/bin/Debug/net5.0
solutionPath: Source/Dafny.sln
testProjectPath: Source/DafnyLanguageServer.Test/DafnyLanguageServer.Test.csproj
z3BaseUri: https://github.com/Z3Prover/z3/releases/download/Z3-4.8.5
z3: z3-4.8.5-x64-ubuntu-16.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Install dependencies
run: dotnet restore ${{env.solutionPath}}
- name: Build
run: dotnet build --no-restore ${{env.solutionPath}}
- name: Load Z3
shell: pwsh
run: |
Invoke-WebRequest ${{env.z3BaseUri}}/${{env.z3}}.zip -OutFile z3.zip
Expand-Archive z3.zip .
Remove-Item z3.zip
Copy-Item ${{env.z3}} ${{env.testPath}}/z3 -Recurse
- name: Set Z3 Permissions
run: chmod +x ${{env.testPath}}/z3/bin/z3
- name: Run Tests
run: dotnet test --no-restore --verbosity normal ${{env.testProjectPath}}