Skip to content

Commit

Permalink
ci(refactor): re-order commit stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonribble committed Sep 30, 2024
1 parent b6011e2 commit f8e0cca
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,25 @@ env:
CARGO_TERM_COLOR: always

jobs:
prepare_database:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Build release
run: cargo build --release

unit:
name: Commit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --bins

integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
Expand All @@ -35,14 +53,6 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

test:
name: Commit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --bins

lint:
name: Linting
runs-on: ubuntu-latest
Expand All @@ -53,19 +63,3 @@ jobs:
components: clippy
- name: Lint check
run: cargo clippy -- -D clippy::pedantic -W clippy::nursery

build_and_upload:
name: Build and Upload Artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Build release
run: cargo build --release

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: connect
path: target/release/connect

0 comments on commit f8e0cca

Please sign in to comment.