Skip to content

Commit 3b00965

Browse files
authored
Merge pull request #8 from wreulicke/add-ci
Add test
2 parents 7e4c74d + 494f3aa commit 3b00965

File tree

6 files changed

+61
-27
lines changed

6 files changed

+61
-27
lines changed

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- master
8+
- main
9+
pull_request:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
jobs:
14+
golangci:
15+
name: lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.22.3'
21+
- uses: actions/checkout@v4
22+
- name: golangci-lint
23+
uses: golangci/golangci-lint-action@v6
24+
with:
25+
version: v1.58.2
26+
test:
27+
name: test
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/setup-java@v4
31+
with:
32+
java-version: '22'
33+
distribution: 'temurin'
34+
- uses: actions/setup-go@v5
35+
with:
36+
go-version: '1.22.3'
37+
- uses: actions/checkout@v4
38+
- name: test
39+
run: make test
40+
-
41+
uses: k1LoW/octocov-action@v0

.github/workflows/golangci-lint.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.class
22
testdata/dist
3-
testdata/classes
3+
testdata/classes
4+
build

.octocov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
comment:
2+
coverage:
3+
paths:
4+
- build/coverage.out
5+
summary:
6+
if: true
7+
body:
8+
if: is_pull_request

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ build-java:
1010

1111
.PHONY: test
1212
test: build-java
13-
go test ./...
13+
mkdir -p build
14+
go test ./... -v -race -coverprofile=build/coverage.out

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,16 @@ func main() {
2323
}
2424
// ...
2525
}
26-
2726
```
2827

28+
## Supported Versions
29+
30+
Java 22
31+
32+
## Notice
33+
34+
Opcode parser is experimental.
35+
2936
## License
3037

3138
* MIT

0 commit comments

Comments
 (0)