From 987b1aa109dbd30ac591836cebd2bfa6c675ebd2 Mon Sep 17 00:00:00 2001 From: Brian May Date: Tue, 24 Jan 2023 14:38:01 +1100 Subject: [PATCH] fix: refactor CI --- .github/workflows/{rust.yml => release.yml} | 22 ---------------- .github/workflows/test.yaml | 28 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 22 deletions(-) rename .github/workflows/{rust.yml => release.yml} (91%) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/rust.yml b/.github/workflows/release.yml similarity index 91% rename from .github/workflows/rust.yml rename to .github/workflows/release.yml index b16c677..372b69d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ name: Rust on: push: branches: ["main"] - pull_request: - branches: ["main"] env: CARGO_TERM_COLOR: always @@ -13,28 +11,8 @@ env: MACOSX_DEPLOYMENT_TARGET: 10.7 jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - uses: Swatinem/rust-cache@v2 - - name: Fmt Check - run: cargo fmt -- --check - - name: Clippy - run: cargo clippy --no-deps -- -Dwarnings - - name: Compile - run: cargo build - - name: Test - run: cargo test - release_please: if: github.repository == 'electronicarts/helmci' - needs: - - test runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..fd577c8 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,28 @@ +name: Rust + +on: + push: + branches: ["main"] + pull_request: {} + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: Swatinem/rust-cache@v2 + - name: Fmt Check + run: cargo fmt -- --check + - name: Clippy + run: cargo clippy --no-deps -- -Dwarnings + - name: Compile + run: cargo build + - name: Test + run: cargo test