From 057f7edc9d6249f62917d93c01fccb60a84f9763 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Fri, 3 Sep 2021 00:08:55 +0200 Subject: ci: added minimal fmt,build,test gh action --- .github/workflows/check.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/check.yml (limited to '.github/workflows/check.yml') diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..3ad9a44 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,20 @@ +name: Build and Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: cargo fmt -- --check + - run: cargo build --verbose + - run: cargo test --verbose + -- cgit v1.2.3