|
| 1 | +on: |
| 2 | + schedule: |
| 3 | + - cron: '0 */4 * * *' |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
| 8 | + paths: |
| 9 | + - .github/actions/prepare/action.yml |
| 10 | + - .github/workflows/e2e-vite-workflow.yml |
| 11 | + - scripts/e2e-setup-ci.sh |
| 12 | + |
| 13 | +name: 'E2E Vite' |
| 14 | +jobs: |
| 15 | + chore: |
| 16 | + name: 'Validating Vite' |
| 17 | + runs-on: ubuntu-latest |
| 18 | + |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v3 |
| 21 | + |
| 22 | + - uses: ./.github/actions/prepare |
| 23 | + |
| 24 | + - name: 'Running the integration test (vanilla-ts)' |
| 25 | + run: | |
| 26 | + source scripts/e2e-setup-ci.sh |
| 27 | +
|
| 28 | + yarn create vite vanilla-ts --template vanilla-ts |
| 29 | + cd vanilla-ts |
| 30 | + yarn |
| 31 | + yarn build |
| 32 | +
|
| 33 | + - name: 'Running the integration test (vue-ts)' |
| 34 | + run: | |
| 35 | + source scripts/e2e-setup-ci.sh |
| 36 | +
|
| 37 | + yarn create vite vue-ts --template vue-ts |
| 38 | + cd vue-ts |
| 39 | + yarn |
| 40 | + yarn build |
| 41 | + if: | |
| 42 | + success() || failure() |
| 43 | +
|
| 44 | + - name: 'Running the integration test (react-ts)' |
| 45 | + run: | |
| 46 | + source scripts/e2e-setup-ci.sh |
| 47 | +
|
| 48 | + yarn create vite react-ts --template react-ts |
| 49 | + cd react-ts |
| 50 | + yarn |
| 51 | + yarn build |
| 52 | + if: | |
| 53 | + success() || failure() |
| 54 | +
|
| 55 | + # TODO: Enable when the template is PnP compatible |
| 56 | + # - name: 'Running the integration test (preact-ts)' |
| 57 | + # run: | |
| 58 | + # source scripts/e2e-setup-ci.sh |
| 59 | + |
| 60 | + # yarn create vite preact-ts --template preact-ts |
| 61 | + # cd preact-ts |
| 62 | + # yarn |
| 63 | + # yarn build |
| 64 | + # if: | |
| 65 | + # success() || failure() |
| 66 | + |
| 67 | + - name: 'Running the integration test (lit-ts)' |
| 68 | + run: | |
| 69 | + source scripts/e2e-setup-ci.sh |
| 70 | +
|
| 71 | + yarn create vite lit-ts --template lit-ts |
| 72 | + cd lit-ts |
| 73 | + yarn |
| 74 | + yarn build |
| 75 | + if: | |
| 76 | + success() || failure() |
| 77 | +
|
| 78 | + - name: 'Running the integration test (svelte-ts)' |
| 79 | + run: | |
| 80 | + source scripts/e2e-setup-ci.sh |
| 81 | +
|
| 82 | + yarn create vite svelte-ts --template svelte-ts |
| 83 | + cd svelte-ts |
| 84 | + yarn |
| 85 | + yarn build |
| 86 | + if: | |
| 87 | + success() || failure() |
0 commit comments