Skip to content

Commit

Permalink
ci: placeholder for component and contract testing
Browse files Browse the repository at this point in the history
rename commit phase to unit (redundant use of the word commit)
  • Loading branch information
jasonribble committed Oct 3, 2024
1 parent 1213924 commit 5a77139
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: cargo build --release

unit:
name: Commit Tests
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -53,7 +53,29 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

lint:

component:
name: Component Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run integration
run: cargo test --test component
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

contract:
name: Contract Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run integration
run: cargo test --test contract
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

name: Linting
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 8 additions & 0 deletions tests/component.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {

#[test]
fn placeholder() {
assert!(true)
}
}
8 changes: 8 additions & 0 deletions tests/contract.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {

#[test]
fn placeholder() {
assert!(true)
}
}

0 comments on commit 5a77139

Please sign in to comment.