-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1 KB
/
build.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
name: Build and test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x' ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Setup Java 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11
- name: Install ANTLR
run: curl -O https://www.antlr.org/download/antlr-4.13.0-complete.jar
- name: Generate test parsers
run: |
chmod +x ./generate_test_parsers.sh
sh ./generate_test_parsers.sh
working-directory: Sharplasu.Tests
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal