Skip to content

Commit 12dbe63

Browse files
committed
some updates
1 parent e7597e9 commit 12dbe63

File tree

170 files changed

+784891
-11780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+784891
-11780
lines changed

.github/workflows/Test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "*"
9+
pull_request:
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
build_and_test:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
toolchain:
23+
- stable
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Rustup
27+
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
28+
- name: Install cargo-llvm-cov
29+
uses: taiki-e/install-action@cargo-llvm-cov
30+
- name: Test
31+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
32+
working-directory: ./jmaxml-rs
33+
- name: Upload coverage to Codecov
34+
uses: codecov/codecov-action@v4
35+
with:
36+
working-directory: ./jmaxml-rs
37+
token: ${{ secrets.CODECOV_TOKEN }}
38+
files: lcov.info
39+
fail_ci_if_error: true

Makefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
.PHONY: update test
22

33
update:
4-
python -m jmx_codegen
5-
rye format
6-
cd jmaxml-go && go fmt ./... && go mod tidy
4+
uv run python -m jmx_codegen
5+
# cd jmaxml-go && go fmt ./... && go mod tidy
76
cd ./jmaxml-rs && cargo fmt
87

9-
test:
10-
cd jmaxml-go && go test ./... -coverprofile=coverage.txt -covermode=count && go tool cover -html coverage.txt
11-
12-
8+
test: update
9+
cd ./jmaxml-rs && cargo test
10+
cd ./jmaxml-json-types && npm run test
11+
# cd jmaxml-go && go test ./... -coverprofile=coverage.txt -covermode=count && go tool cover -html coverage.txt

0 commit comments

Comments
 (0)