Skip to content

Commit 68a528e

Browse files
authored
Merge pull request #23 from circlecube/claude/modernize-project-deps-6wGt5
Modernize project: Vite + Vue 3 + Cypress 13 + GitHub Actions
2 parents ca522b0 + c49c101 commit 68a528e

18 files changed

Lines changed: 4464 additions & 10776 deletions

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build
24+
run: npm run build
25+
26+
- name: Run Cypress tests
27+
uses: cypress-io/github-action@v6
28+
with:
29+
start: npm run preview
30+
wait-on: 'http://localhost:8888'
31+
install: false

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ node_modules
6060
##########
6161
/README.html
6262
/build/
63+
/dist/
64+
65+
# Vite / Cypress artifacts #
66+
##########
67+
cypress/videos/
68+
cypress/screenshots/
6369

6470
# PhpStrom Project Files #
6571
.idea/

.travis.yml

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

cypress.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:8888',
6+
testIsolation: false,
7+
env: {
8+
appurl: 'http://localhost:8888',
9+
},
10+
specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
11+
},
12+
})

cypress.json

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

0 commit comments

Comments
 (0)