Skip to content

Commit

Permalink
Add vue-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkleemans committed Nov 20, 2023
1 parent 45e25d1 commit 586c48a
Showing 1 changed file with 45 additions and 5 deletions.
50 changes: 45 additions & 5 deletions .github/workflows/e2e.yml
Expand Up @@ -4,21 +4,61 @@ jobs:
vite-cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm create vite@latest test-app -- --template vue-ts
- run: |
- name: Checkout
uses: actions/checkout@v4

- name: Install vue-ts
run: npm create vite@latest test-app -- --template vue-ts

- name: Add example code
run: |
mv ./example/src/App.vue ./test-app/src/App.vue
mv ./example/vite.config.ts ./test-app/vite.config.ts
mv ./example/src/vite-env.d.ts ./test-app/src/vite-env.d.ts
mv ./example/src/assets/test.svg ./test-app/src/assets/test.svg
mv ./example/src/assets/style.svg ./test-app/src/assets/style.svg
mv ./example/src/assets/circle.svg ./test-app/src/assets/circle.svg
mv ./example/public/root.svg ./test-app/public/root.svg
- run: |
- name: Build
run: |
cd test-app
npm install
npm install vite-svg-loader --save-dev
npm run build
- uses: cypress-io/github-action@v6
- name: Test
uses: cypress-io/github-action@v6
with:
start: npm run test:preview

vue-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install vue-ts
run: npm create vue@latest test-app -- --default --ts

- name: Add example code
run: |
mv ./example/src/App.vue ./test-app/src/App.vue
mv ./example/vite.config.ts ./test-app/vite.config.ts
mv ./example/src/vite-env.d.ts ./test-app/src/vite-env.d.ts
mv ./example/src/assets/test.svg ./test-app/src/assets/test.svg
mv ./example/src/assets/style.svg ./test-app/src/assets/style.svg
mv ./example/src/assets/circle.svg ./test-app/src/assets/circle.svg
mv ./example/public/root.svg ./test-app/public/root.svg
- name: Build
run: |
cd test-app
npm install
npm install vite-svg-loader --save-dev
npm run build
- name: Test
uses: cypress-io/github-action@v6
with:
start: npm run test:preview

0 comments on commit 586c48a

Please sign in to comment.