Skip to content

Commit

Permalink
ci: update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 21, 2024
1 parent 2b0b671 commit 898ac68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .fluentci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ pub fn e2e() -> FnResult<String> {
.stdout()?;
Ok(stdout)
}

#[plugin_fn]
pub fn server_e2e() -> FnResult<String> {
let stdout = dag()
.mise()?
.with_exec(vec![
"mise install && cd src/server && cp ormconfig.ci.json ormconfig.json && mise x -- bun install && mise x -- bun run migrate:up && mise x -- bun run test:e2e",
])?
.stdout()?;
Ok(stdout)
}
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ jobs:
cd src/client && fluentci run --wasm cypress install
cd ../..
fluentci run --wasm . e2e
- name: 🔄 E2E Server
run: |
fluentci run --wasm . server_e2e

0 comments on commit 898ac68

Please sign in to comment.