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