mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-30 01:24:18 +03:00
42 lines
900 B
YAML
42 lines
900 B
YAML
name: CI
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * *' # run at 2 AM UTC
|
|
push:
|
|
branches: [ '*' ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
rust: [stable]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build Debug
|
|
run: cargo build
|
|
- name: Run tests
|
|
run: make test
|
|
- name: Run clippy
|
|
run: make clippy
|
|
- name: Build Release
|
|
run: make build-release
|
|
- name: Security audit
|
|
uses: actions-rs/audit-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
rustfmt:
|
|
name: Rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Install Rust
|
|
run: rustup update stable && rustup default stable && rustup component add rustfmt
|
|
- run: cargo fmt -- --check |