aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/tests.yml
blob: 38df357aef8212cf6a07d910d0191dfc0956e769 (plain) (blame)
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
name: tests

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Build
      run: make -C ci build

    - name: Build examples
      run: make -C ci build-examples

    - name: Check fmt
      run: make -C ci check-fmt

    - name: Check clippy lints
      run: make -C ci check-clippy

    - name: Run tests
      run: make -C ci check-tests

    - name: Run example tests
      run: make -C ci check-examples

    - name: Run examples
      run: make -C ci run-examples