Skip to content

Commit 51fb3f8

Browse files
authored
Merge pull request #26 from eelab-dev/next
Next
2 parents eafe75e + e376cc6 commit 51fb3f8

92 files changed

Lines changed: 12519 additions & 105840 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/build-push-next.yml

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ env:
77

88
on:
99
schedule:
10-
- cron: '0 0 * * 0' # Runs every Sunday at midnight
11-
workflow_dispatch: # Allows manual triggering
10+
- cron: "0 0 * * 0" # Runs every Sunday at midnight
11+
workflow_dispatch: # Allows manual triggering
1212

1313
jobs:
1414
build-and-deploy:
@@ -20,47 +20,41 @@ jobs:
2020
contents: write
2121

2222
steps:
23-
- name: Checkout Repository
24-
uses: actions/checkout@v4
25-
with:
26-
repository: eelab-dev/EEcircuit
27-
ref: next # Checkout the "next" branch
23+
- name: Checkout Repository
24+
uses: actions/checkout@v4
25+
with:
26+
repository: eelab-dev/EEcircuit
27+
ref: next # Checkout the "next" branch
2828

29+
- name: Update Dependencies
30+
run: npx --yes npm-check-updates -u
2931

30-
- name: Update Dependencies
31-
run: npx --yes npm-check-updates -u
32-
33-
- name: Install Dependencies
34-
run: npm install
32+
- name: Install Dependencies
33+
run: npm install
3534

36-
- name: Update engine to next version
37-
run: npm install eecircuit-engine@next
38-
39-
- name: Build Project with Vite
40-
run: npm run build
35+
- name: Update engine to next version
36+
run: npm install eecircuit-engine@next
4137

42-
- name: Deploy to Vercel
43-
run: npx vercel --token=${{ secrets.VERCEL_TOKEN }}
38+
- name: Build Project with Vite
39+
run: npm run build
4440

45-
- name: Install Playwright Browsers
46-
run: npx playwright install --with-deps
47-
48-
- name: Run Playwright tests
49-
run: npx playwright test -g "EEcircuit Next"
50-
51-
- uses: actions/upload-artifact@v4
52-
if: always()
53-
with:
54-
name: playwright-report
55-
path: playwright-report/
56-
retention-days: 30
57-
41+
- name: Deploy to Vercel
42+
run: npx vercel --token=${{ secrets.VERCEL_TOKEN }}
5843

59-
# auto commit
60-
- uses: stefanzweifel/git-auto-commit-action@v5
61-
with:
62-
commit_message: Auto updates after tests
44+
- name: Install Playwright Browsers
45+
run: npx playwright install --with-deps
6346

47+
- name: Run Playwright tests
48+
run: npx playwright test -g "EEcircuit Next"
6449

65-
50+
- uses: actions/upload-artifact@v4
51+
if: always()
52+
with:
53+
name: playwright-report
54+
path: playwright-report/
55+
retention-days: 30
6656

57+
# auto commit
58+
- uses: stefanzweifel/git-auto-commit-action@v5
59+
with:
60+
commit_message: Auto updates after tests

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ tests/output
1919
tests/repos
2020
test-results
2121
playwright-report
22+
.DS_Store

Docker/Dockerfile

Lines changed: 0 additions & 37 deletions
This file was deleted.

Docker/help.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

Docker/inject.js

Lines changed: 0 additions & 88 deletions
This file was deleted.

Docker/run.sh

Lines changed: 0 additions & 63 deletions
This file was deleted.

eslint.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
import pluginReact from "eslint-plugin-react";
5+
6+
7+
/** @type {import('eslint').Linter.Config[]} */
8+
export default [
9+
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
10+
{languageOptions: { globals: globals.browser }},
11+
pluginJs.configs.recommended,
12+
...tseslint.configs.recommended,
13+
pluginReact.configs.flat.recommended,
14+
];

0 commit comments

Comments
 (0)