Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
pull_request:
branches: [master]
push:
branches: [master]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Run linting
run: pnpm lint

e2e:
name: Playwright Tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright browsers
working-directory: ./test-harness
run: pnpm install && pnpm exec playwright install --with-deps
- name: Run Playwright tests
working-directory: ./test-harness
run: pnpm e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: test-harness/playwright-report/
retention-days: 30
19 changes: 0 additions & 19 deletions .github/workflows/lint.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/playwright.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"homepage": "https://github.com/Backgammonist/backgammon-board#readme",
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0. || ^18.0.0 || ^19.0.0"
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"resolutions": {
"typescript-eslint": "^8.15.0"
Expand Down
11 changes: 10 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react";
import { resolve } from "path";
import dts from "vite-plugin-dts";

// https://vite.dev/config/
export default defineConfig({
plugins: [react(), dts({ include: ["src"] })],
build: {
Expand All @@ -12,7 +11,6 @@ export default defineConfig({
name: "BackgammonBoard",
fileName: (format) => `index.${format === "es" ? "js" : "umd.cjs"}`,
},
// sourcemap: true,
rollupOptions: {
external: ["react", "react-dom"],
output: {
Expand Down
Loading