generated from habedi/template-rust-project
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 1015 Bytes
/
tests.yml
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
name: Tests
on:
workflow_dispatch: { } # Allow manual execution
workflow_call: # Make this workflow callable from other workflows
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# Define the Rust versions to test against
rust-version: [ "1.83.0", "1.84.0", "beta", "stable" ]
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 }}
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y 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