-
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.19 KB
/
Test.yml
File metadata and controls
50 lines (43 loc) · 1.19 KB
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
name: Test
on:
push:
branches:
- main
tags:
- "*"
pull_request:
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- run: npm i -g --force corepack && corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: 'jmaxml-json-types/pnpm-lock.yaml'
- name: Rustup
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Test
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Test jmaxml-json-types
run: pnpm install && npm run test
working-directory: ./jmaxml-json-types
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
working-directory: ./jmaxml-rs
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true