add test for WorkflowStack component #2184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sessionspaces Code | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
# Deduplicate jobs from pull requests and branch pushes within the same repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
services: | |
ispyb: | |
image: ghcr.io/diamondlightsource/ispyb-database:v3.0.0 | |
ports: | |
- 3306:3306 | |
env: | |
MARIADB_ROOT_PASSWORD: rootpassword | |
options: > | |
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect" | |
env: | |
DATABASE_URL: mysql://root:rootpassword@localhost/ispyb_build | |
steps: | |
- name: Checkout source | |
uses: actions/[email protected] | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
default: true | |
- name: Cache Rust Build | |
uses: Swatinem/[email protected] | |
- name: Check Formatting | |
uses: actions-rs/[email protected] | |
with: | |
command: fmt | |
args: > | |
--manifest-path sessionspaces/Cargo.toml | |
--all | |
--check | |
- name: Lint with Clippy | |
uses: actions-rs/[email protected] | |
with: | |
command: clippy | |
args: > | |
--manifest-path sessionspaces/Cargo.toml | |
--all-targets | |
--all-features | |
--no-deps | |
-- | |
--deny warnings | |
test: | |
# Deduplicate jobs from pull requests and branch pushes within the same repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
services: | |
ispyb: | |
image: ghcr.io/diamondlightsource/ispyb-database:v3.0.0 | |
ports: | |
- 3306:3306 | |
env: | |
MARIADB_ROOT_PASSWORD: rootpassword | |
options: > | |
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect" | |
env: | |
DATABASE_URL: mysql://root:rootpassword@localhost/ispyb_build | |
steps: | |
- name: Checkout source | |
uses: actions/[email protected] | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
default: true | |
- name: Cache Rust Build | |
uses: Swatinem/[email protected] | |
- name: Test | |
uses: actions-rs/[email protected] | |
with: | |
command: test | |
args: > | |
--manifest-path sessionspaces/Cargo.toml | |
--all-targets | |
--all-features |