-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.35 KB
/
dotnet.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
name: Tests
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Download ANTLR
run: curl --output antlr-4.13.1-complete.jar https://www.antlr.org/download/antlr-4.13.1-complete.jar
- name: Compile ANTLR grammars
run: |
export ANTLR_JAR="$(pwd)"/antlr-4.13.1-complete.jar
export CLASSPATH=.:"$(pwd)/antlr-4.13.1-complete.jar"
./do src/antlr/compiled
./do src/antlr/excelrange/compiled
./do src/antlr/idf/compiled
- name: Run redo targets
run: |
./do src/Help.cs src/Version.cs test/TestFileDirectory.cs
- name: Restore dependencies
run: |
dotnet restore src
dotnet restore test
- name: Build
run: |
dotnet build src --no-restore
dotnet build test --no-restore
- name: Test
run: dotnet test test --no-build --verbosity normal
- name: Test documentation code samples
run: |
find "$PWD" -name nbem
PATH="$(dirname "$(find "$PWD" -name nbem | head -n 1)")":"$PATH"
echo "PATH:"
echo "$PATH"
./do doc/code_samples/test