File: ci.yml

package info (click to toggle)
rust-piz 0.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: sh: 14; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (2)
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
name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  CARGO_TERM_COLOR: always

jobs:
  format_and_docs:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Cargo fmt
      run: cargo fmt -- --check
    - name: Cargo doc
      run: cargo doc

  build_and_test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Build lib, tests, and examples
      run: cargo build --all-targets --release
    - name: Build test inputs
      run: ./tests/create-inputs.sh
    - name: Run tests
      run: cargo test --release