fix wokflow syntax error in Windows #2 #597
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: build_and_test | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
- '*.py' | |
- '*.txt' | |
branches: [ "main" ] | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
branches: [ "main" ] | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@main | |
- name: Setup Go | |
uses: actions/setup-go@main | |
with: | |
go-version: '1.21.x' | |
cache: true | |
cache-dependency-path: "**/go.sum" | |
- name: Build Jacotest | |
run: | | |
cd src | |
go get github.com/mattn/go-sqlite3 | |
go build -o . -v ./... | |
cd .. | |
pwd | |
./src/jacotest -h | |
- name: Setup JDK | |
uses: actions/setup-java@main | |
with: | |
distribution: 'oracle' | |
java-version: '21' | |
- name: Run Test Cases | |
run: | | |
java --version | |
javac --version | |
./src/jacotest -c -x -M -t 60 -j openjdk | |
ls -l ./reports | |
- name: Run options | |
run: | | |
./src/jacotest -r 1 -j openjdk | |
./src/jacotest -r 2 -j openjdk | |
./src/jacotest -z -v -j openjdk | |
- name: Show subclassing in test cases | |
if: runner.os == 'Linux' | |
run: | | |
./show_subclassing.sh | |