From cce0f1d28f2a945e03a4642a37477e3e94602774 Mon Sep 17 00:00:00 2001 From: Michael Vlach Date: Wed, 17 Aug 2022 22:02:29 +0200 Subject: [PATCH] [ci] Add pull request build #5 (#6) Create pr.yaml --- .github/workflows/pr.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 000000000..f791194fa --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,21 @@ +name: pr + +on: + pull_request: + branches: ["main"] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: cargo build --verbose + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: cargo test --verbose