2020-03-23 16:59:46 +03:00
|
|
|
name: CI
|
2020-03-23 16:53:38 +03:00
|
|
|
|
|
|
|
on:
|
2020-03-23 20:39:16 +03:00
|
|
|
schedule:
|
|
|
|
- cron: '0 2 * * *' # run at 2 AM UTC
|
2020-03-23 16:53:38 +03:00
|
|
|
push:
|
2020-03-30 20:07:08 +03:00
|
|
|
branches: [ '*' ]
|
2020-03-23 16:53:38 +03:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-03-23 20:33:24 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2020-03-23 16:53:38 +03:00
|
|
|
|
2020-03-23 20:33:24 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-03-23 20:39:16 +03:00
|
|
|
|
2020-03-23 16:53:38 +03:00
|
|
|
steps:
|
2020-03-27 02:27:07 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-03-23 16:53:38 +03:00
|
|
|
- name: Build
|
2020-03-28 11:39:16 +03:00
|
|
|
run: cargo build
|
2020-03-23 16:53:38 +03:00
|
|
|
- name: Run tests
|
2020-03-28 11:39:16 +03:00
|
|
|
run: cargo test --workspace
|
2020-03-27 02:16:57 +03:00
|
|
|
- name: Run clippy
|
2020-03-27 02:50:02 +03:00
|
|
|
run: cargo clean && cargo clippy --all-features
|
2020-03-29 15:57:23 +03:00
|
|
|
- name: Security audit
|
|
|
|
uses: actions-rs/audit-check@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|