Skip to content

Commit

Permalink
Merge pull request #1 from syarul/rc
Browse files Browse the repository at this point in the history
Add Cypress E2E Test
  • Loading branch information
syarul authored Jan 11, 2024
2 parents b44287c + 43dc657 commit d64af38
Show file tree
Hide file tree
Showing 6 changed files with 1,046 additions and 282 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust and Cypress Test

on:
push:
Expand All @@ -16,7 +16,34 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build
- name: build
run: cargo build --verbose
# - name: Run tests
# run: cargo test --verbose

e2e-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: run
run: cargo run &

- uses: actions/setup-node@v3
with:
node-version: 18

- name: clone cypress-example-todomvc
run: git clone https://github.com/cypress-io/cypress-example-todomvc.git cypress-example-todomvc

- name: install dependencies
run: |
cd cypress-example-todomvc
npm install
- name: run e2e Cypress test
run: |
cd cypress-example-todomvc
npm run cypress:run
- name: stop cargo run
run: pkill -f "cargo run" || true
Loading

0 comments on commit d64af38

Please sign in to comment.