-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.33 KB
/
build_and_test.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
51
52
53
54
55
56
57
58
59
60
61
62
# 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