Skip to content

Commit

Permalink
feat: add lit-vite stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Aug 20, 2024
1 parent 89eee17 commit 94531ee
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 11 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
name: react
version: ${{ matrix.version }}
node: 18

vue:
strategy:
fail-fast: false
Expand All @@ -41,7 +41,7 @@ jobs:
name: vue
version: ${{ matrix.version }}
node: 18

svelte:
strategy:
fail-fast: false
Expand All @@ -53,3 +53,15 @@ jobs:
name: svelte
version: ${{ matrix.version }}
node: 18

lit:
strategy:
fail-fast: false
max-parallel: 1
matrix:
version: [3]
uses: ./.github/workflows/regression.yml
with:
name: lit-vite
version: ${{ matrix.version }}
node: 20
3 changes: 2 additions & 1 deletion .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ on:
- vue
- angular
- svelte
- lit-vite
version:
required: true
type: number
Expand Down Expand Up @@ -71,7 +72,7 @@ jobs:
name: Initialize ${{ inputs.name }} v${{ inputs.version }} app
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [tools,deps]
needs: [tools,deps]
if: |
always() &&
!contains(needs.*.result, 'failure') &&
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/update-all-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
skip-tools: true
qa-path: ${{ needs.tools.outputs.qa-path }}
kit-path: ${{ needs.tools.outputs.kit-path }}

vue:
needs: tools
strategy:
Expand All @@ -84,7 +84,7 @@ jobs:
skip-tools: true
qa-path: ${{ needs.tools.outputs.qa-path }}
kit-path: ${{ needs.tools.outputs.kit-path }}

svelte:
needs: tools
strategy:
Expand All @@ -104,3 +104,23 @@ jobs:
skip-tools: true
qa-path: ${{ needs.tools.outputs.qa-path }}
kit-path: ${{ needs.tools.outputs.kit-path }}

lit:
needs: tools
strategy:
fail-fast: false
max-parallel: 1
matrix:
version: [3]
uses: ./.github/workflows/update-snapshots.yml
secrets: inherit
with:
name: lit-vite
version: ${{ matrix.version }}
node: 20
branch: ${{ inputs.branch }}
qa: ${{ needs.tools.outputs.qa-artifact }}
kit: ${{ needs.tools.outputs.kit-artifact }}
skip-tools: true
qa-path: ${{ needs.tools.outputs.qa-path }}
kit-path: ${{ needs.tools.outputs.kit-path }}
13 changes: 7 additions & 6 deletions .github/workflows/update-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ on:
- vue
- angular
- svelte
- lit-vite
version:
required: true
type: number
Expand Down Expand Up @@ -131,7 +132,7 @@ jobs:
name: snapshots-${{ inputs.name }}-v${{ inputs.version }}
path: ${{ steps.get_snapshots.outputs.path }}
retention-days: 7

send:
runs-on: ubuntu-latest
needs: update
Expand All @@ -155,15 +156,15 @@ jobs:
- name: Get path to snapshots
id: snapshots_folder
run: echo "path=./snapshots/${{ inputs.name }}${{ inputs.version }}" >> $GITHUB_OUTPUT

- name: Clear old snapshots
run: rm -rf ${{ steps.snapshots_folder.outputs.path }}

- uses: actions/download-artifact@v3
with:
name: snapshots-${{ inputs.name }}-v${{ inputs.version }}
path: ${{ steps.snapshots_folder.outputs.path }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand All @@ -175,5 +176,5 @@ jobs:
branch: update-snapshots-${{ inputs.name }}-v${{ inputs.version }}-${{ inputs.branch }}
body: "Snapshots update for ${{ inputs.name }} v${{ inputs.version }}"
reviewers: Ni55aN


0 comments on commit 94531ee

Please sign in to comment.