From 14874df7e1c553b6a57026a3c67001e45d1c8967 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 3 Feb 2023 13:55:15 -0500 Subject: [PATCH] update CI branch targets --- .github/workflows/build-check.yml | 7 ++++--- .github/workflows/rust.yml | 25 ++++++------------------- 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 5786b46..6925113 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -1,9 +1,10 @@ -name: Build check +name: Build website on: pull_request: - branches: - - v2 + types: [opened, synchronize, reopened] + push: + branches: [main] jobs: test-deploy: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 38aea19..eb06d68 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,30 +4,17 @@ on: pull_request: types: [opened, synchronize, reopened] push: - branches: - - master - -env: - RUSTFLAGS: -A dead-code -A unused-variables + branches: [master] jobs: check-examples: - strategy: - fail-fast: false - name: Check examples runs-on: ubuntu-latest + env: + RUSTFLAGS: -A dead-code -A unused-variables + steps: - uses: actions/checkout@v3 - - - name: Use stable - run: | - rustup override set stable - rustup update stable - - - name: cargo check and cargo test - run: | - cd examples - cargo check - cargo test + - uses: actions-rust-lang/setup-rust-toolchain@v1.3.5 + - run: cargo test