Skip to content

Commit

Permalink
fix: refactor CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian May committed Jan 24, 2023
1 parent d79aa95 commit 987b1aa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always
Expand All @@ -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:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 987b1aa

Please sign in to comment.