-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 2.28 KB
/
ci.yaml
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
# ┌───────────────────────────────────────────────────────────────────────────┐
# │ │
# │ ██████╗ ██████╗ ██████╗ Copyright (C) 2022, The Prospective Company │
# │ ██╔══██╗██╔══██╗██╔═══██╗ │
# │ ██████╔╝██████╔╝██║ ██║ This file is part of the Procss library, │
# │ ██╔═══╝ ██╔══██╗██║ ██║ distributed under the terms of the │
# │ ██║ ██║ ██║╚██████╔╝ Apache License 2.0. The full license can │
# │ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ be found in the LICENSE file. │
# │ │
# └───────────────────────────────────────────────────────────────────────────┘
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04]
rust: [nightly-2023-10-12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: "Restore cache"
uses: ./.github/actions/cache
with:
name: build_dev
os: ${{ matrix.os }}
rust: ${{ matrix.rust }}
- name: Lint
run: cargo clippy
- name: Build
run: cargo xbuild
- name: Test
run: cargo xtest --coverage
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./target/coverage/lcov/lcov.info