Fix drag ending immediately upon start #79
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: {} | |
| concurrency: | |
| group: ci-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: "Tests" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Install Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Run Tests | |
| run: pnpm test | |
| - id: set-matrix | |
| run: echo "matrix=$(pnpm -s dlx @embroider/try list)" >> $GITHUB_OUTPUT | |
| floating: | |
| name: "Floating Dependencies" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install Dependencies | |
| run: pnpm install --no-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Run Tests | |
| run: pnpm test | |
| try-scenarios: | |
| name: ${{ matrix.name }} | |
| runs-on: ubuntu-latest | |
| needs: "test" | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{fromJson(needs.test.outputs.matrix)}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Apply Scenario | |
| run: pnpm dlx @embroider/try apply ${{ matrix.name }} | |
| - name: Install Dependencies | |
| run: pnpm install --no-lockfile | |
| - run: pnpm build | |
| env: ${{ matrix.env }} | |
| - name: Run Tests | |
| run: pnpm test | |
| env: ${{ matrix.env }} |