diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..be658da --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + env: + NODE_OPTIONS: --openssl-legacy-provider + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + - run: yarn install --frozen-lockfile + - run: yarn lint + + test: + runs-on: ubuntu-latest + env: + NODE_OPTIONS: --openssl-legacy-provider + CI: true + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + - run: yarn install --frozen-lockfile + - run: yarn test --watchAll=false diff --git a/package.json b/package.json index b564970..4473348 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "build": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired build", "test": "react-app-rewired test", "eject": "react-app-rewired eject", + "lint": "eslint src --ext .js,.jsx,.ts,.tsx", "render:shape": "node .claude/skills/deckbuilder-shape/scripts/render-shape.mjs" }, "eslintConfig": {