fix: use cloneNode instead of innerHTML #559
Workflow file for this run
This file contains hidden or 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: Run tests | |
| on: [push, pull_request] | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| # 최신 노드 버전 사용 | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| cache-dependency-path: "**/pnpm-lock.yaml" | |
| - name: install-root | |
| run: pnpm install | |
| - name: install-unit | |
| working-directory: ./packages/test-flicking/unit | |
| run: pnpm install | |
| - name: run unit test | |
| working-directory: ./packages/test-flicking/unit | |
| run: pnpm run coverage | |
| - name: send coverage | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| flag-name: unit | |
| base-path: ./packages/test-flicking/unit | |
| path-to-lcov: ./packages/test-flicking/unit/coverage/lcov.info | |
| parallel: true | |
| plugins: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| # 최신 노드 버전 사용 | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| cache-dependency-path: "**/pnpm-lock.yaml" | |
| - name: install-root | |
| run: pnpm install | |
| - name: install-plugins | |
| working-directory: ./packages/test-flicking/plugins | |
| run: pnpm install | |
| - name: run plugins test | |
| working-directory: ./packages/test-flicking/plugins | |
| run: pnpm run coverage | |
| - name: send coverage | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| flag-name: plugins | |
| base-path: ./packages/test-flicking/plugins | |
| path-to-lcov: ./packages/test-flicking/plugins/coverage/lcov.info | |
| parallel: true | |
| cfc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| # 최신 노드 버전 사용 | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| cache-dependency-path: "**/pnpm-lock.yaml" | |
| - name: install-root | |
| run: pnpm install | |
| - name: install-cfc | |
| working-directory: ./packages/test-flicking/cfc | |
| run: pnpm install | |
| - name: run cfc test | |
| working-directory: ./packages/test-flicking/cfc | |
| run: pnpm run coverage | |
| - name: send coverage | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| flag-name: cfc | |
| base-path: ./packages/test-flicking/cfc | |
| path-to-lcov: ./packages/test-flicking/cfc/coverage/lcov.info | |
| parallel: true | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| cache-dependency-path: "**/pnpm-lock.yaml" | |
| - name: install-root | |
| run: pnpm install | |
| - name: install-e2e | |
| working-directory: ./packages/test-flicking/e2e | |
| run: pnpm install | |
| - name: install-browsers | |
| working-directory: ./packages/test-flicking/e2e | |
| run: npx playwright install --with-deps chromium | |
| - name: run e2e | |
| working-directory: ./packages/test-flicking/e2e | |
| run: pnpm test | |
| teardown: | |
| needs: [unit, plugins, cfc, e2e] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel-finished: true |