Merge pull request #53 from inokawa/cut-readonly #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
cache: "npm" | |
- run: npm ci | |
- run: npm run tsc | |
- run: npm run build | |
- run: npm run size | |
e2e: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
cache: "npm" | |
- run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npm run e2e | |
- run: npm run build && npm link | |
- name: Smoke vanilla | |
run: (cd examples/vanilla && npm install && npm link edix) && FRAMEWORK_DIR=examples/vanilla npm run e2e | |
- name: Smoke react | |
run: (cd examples/react && npm install && npm link edix) && FRAMEWORK_DIR=examples/react npm run e2e | |
- name: Smoke vue | |
run: (cd examples/vue && npm install && npm link edix) && FRAMEWORK_DIR=examples/vue npm run e2e | |
- name: Smoke svelte | |
run: (cd examples/svelte && npm install && npm link edix) && FRAMEWORK_DIR=examples/svelte npm run e2e | |
- name: Smoke solid | |
run: (cd examples/solid && npm install && npm link edix) && FRAMEWORK_DIR=examples/solid npm run e2e | |
- name: Smoke angular | |
run: (cd examples/angular && npm install && npm link edix) && FRAMEWORK_DIR=examples/angular npm run e2e | |
- name: Smoke preact | |
run: (cd examples/preact && npm install && npm link edix) && FRAMEWORK_DIR=examples/preact npm run e2e | |
# - uses: actions/upload-artifact@v3 | |
# if: always() | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 30 |