Skip to content

Commit

Permalink
feat: add test for every push
Browse files Browse the repository at this point in the history
  • Loading branch information
fastner committed Jul 23, 2024
1 parent e222316 commit 9ea8f3f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/github-actions-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: GitHub Actions Prod Deployment
on:
- push

jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable
- run: pnpm i
- run: pnpm test
- run: pnpm build
4 changes: 3 additions & 1 deletion app/components/banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import type { PropsWithChildren } from "react"
import { contentClass, rootClass } from "./Banner.css"

export interface BannerProps extends PropsWithChildren {
// readonly title: string
// TODO: how to remove react/no-unused-prop-types
// eslint-disable-next-line react/no-unused-prop-types
readonly title: string
}

export function Banner({ children }: BannerProps) {
Expand Down
1 change: 1 addition & 0 deletions app/components/card/Card.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { elenaWebfont } from "../fonts/elena/Elena.css"
export const root = style({
width: "40ch",
border: "1px solid",
// TODO: how to remove no-unsafe-assignment
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
background: `radial-gradient(at right bottom, ${goldShades[3]}, white)`,
borderColor: "white",
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"sideEffects": false,
"type": "module",
"scripts": {
"check-types": "tsc",
"lint": "eslint .",
"test": "pnpm run --parallel /test:/",
"test:check-types": "tsc --noEmit",
"test:lint": "eslint .",
"fix": "eslint --fix .; prettier --write .",
"format": "prettier --write .",
"check-format": "prettier --check .",
"test:check-format": "prettier --check .",
"build": "remix vite:build",
"dev": "remix vite:dev",
"start": "remix-serve ./build/server/index.js",
Expand Down

0 comments on commit 9ea8f3f

Please sign in to comment.