2023-07-02 13:30:07 +00:00
|
|
|
name: cat-rs CI
|
2023-07-02 13:24:42 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-07-02 13:30:07 +00:00
|
|
|
- name: Set up cat-rs
|
2023-07-02 13:24:42 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install cargo-audit
|
|
|
|
run: cargo install cargo-audit
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
|
|
|
- name: test
|
2023-07-02 13:32:13 +00:00
|
|
|
run: python3 gnu_cat_tests/test.py -c /bin/cat -b target/debug/cat-rs
|
2023-07-02 13:24:42 +00:00
|
|
|
- name: Clippy
|
|
|
|
run: cargo clippy --verbose -- -D warnings
|
|
|
|
- name: Audit
|
|
|
|
run: cargo audit
|