Skip to content

Commit

Permalink
Try creating a test environment using npm create vite
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkleemans committed Nov 20, 2023
1 parent 5159aa9 commit 7a56be5
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/e2e.yml
@@ -1,16 +1,18 @@
name: End-to-end tests
on: [push]
jobs:
cypress-run:
vite-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run example:build
start: npm run example:preview
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- uses: actions/checkout@v4
- run: npm create vite@latest test-app -- --template vue-ts
- run: mv ./example/App.vue ./test-app/App.vue
- run: mv ./example/vite.config.ts ./test-app/vite.config.ts
- run: mv ./example/assets ./test-app/assets
- run: mv ./example/public ./test-app/public
- run: cd test-app
- run: npm install
- run: npm install vite-svg-loader --save-dev
- run: npm build
- run: npm preview
- uses: cypress-io/github-action@v6

0 comments on commit 7a56be5

Please sign in to comment.