Skip to content

Commit cfea17d

Browse files
committed
some updates
1 parent e7597e9 commit cfea17d

File tree

629 files changed

+784897
-11781
lines changed

Some content is hidden

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

629 files changed

+784897
-11781
lines changed

.github/workflows/Test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
33+
- name: Test jmaxml-json-types
34+
run: npm install && npm run test
35+
working-directory: ./jmaxml-json-types
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v4
39+
with:
40+
working-directory: ./jmaxml-rs
41+
token: ${{ secrets.CODECOV_TOKEN }}
42+
files: lcov.info
43+
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)