-
-
Notifications
You must be signed in to change notification settings - Fork 7
59 lines (49 loc) · 1.27 KB
/
Copy pathtests.yml
File metadata and controls
59 lines (49 loc) · 1.27 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
51
52
53
54
55
56
57
58
59
name: Run Tests
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- 'docs/**'
push:
branches:
- main
- develop
paths-ignore:
- '**.md'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
# Define the Rust versions to test against
rust-version: [ "1.85.0", "stable", "beta" ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Rust ${{ matrix.rust-version }}
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
cache: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang curl pkg-config libssl-dev make
make install-deps
- name: Run Tests and Generate Coverage Report
run: make coverage # Generates a coverage report
- name: Upload Coverage Reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
continue-on-error: false