Skip to content

Commit d96a39c

Browse files
committed
run e2e tests on every PR
1 parent b4f8e9b commit d96a39c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/test.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- "*"
1010
jobs:
11-
test:
11+
unit-tests:
1212
name: "Run Tests"
1313
runs-on: "depot-ubuntu-24.04-small"
1414
steps:
@@ -24,3 +24,21 @@ jobs:
2424
- uses: "bahmutov/npm-install@v1"
2525
- name: "Run tests"
2626
run: "yarn test"
27+
e2e-tests:
28+
name: "Run E2E Tests"
29+
runs-on: "depot-ubuntu-24.04-small"
30+
steps:
31+
- uses: "actions/checkout@v4"
32+
- uses: "authzed/action-spicedb@v1"
33+
with:
34+
version: "latest"
35+
- uses: "actions/setup-node@v4"
36+
with:
37+
node-version: 22
38+
cache-dependency-path: "yarn.lock"
39+
cache: "yarn"
40+
- uses: "bahmutov/npm-install@v1"
41+
- name: "Run sever locally"
42+
run: "yarn dev"
43+
- name: "Run e2e tests"
44+
run: "yarn cy:run"

cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
chromeWebSecurity: false,
1111

1212
e2e: {
13-
baseUrl: "http://localhost:3000",
13+
baseUrl: "http://localhost:5173",
1414
specPattern: [
1515
"cypress/integration/**/*.spec.{js,ts}",
1616
"cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",

0 commit comments

Comments
 (0)