Skip to content

Commit

Permalink
Add web test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michalwarda committed Feb 19, 2024
1 parent 9ad8534 commit 2956d86
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.BUILDEL_API-FLY_API_TOKEN }}
FLY_API_TOKEN: ${{ secrets.BUILDEL_API__FLY_API_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/web-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Web Test
on:
push:
branches:
- main
paths:
- 'apps/web-remix/**'

defaults:
run:
working-directory: apps/web-remix

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8.15.3
- uses: actions/setup-node@v4
with:
node-version: '21.6.2'
cache: 'pnpm'
- run: pnpm install
- run: pnpm test
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { InputHandle } from "~/tests/handles/Input.handle";
import { render, screen, waitFor } from "~/tests/render";
import { server } from "~/tests/server.mock";
import { RegisterPage } from "../page";
import { loader } from "../loader";
import { action } from "../action";
import { loader } from "../loader.server";
import { action } from "../action.server";
import { errorHandlers, handlers } from "./register.handlers";

describe(RegisterPage.name, () => {
Expand Down

0 comments on commit 2956d86

Please sign in to comment.