Skip to content

Commit

Permalink
ci: compile and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
cawa-93 committed Nov 12, 2024
1 parent 83edbf0 commit 4fc9793
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ jobs:
- vanilla-ts
tests:
needs:
- prepare
- compile
uses: ./.github/workflows/tests.yml
with:
renderer-template: ${{ matrix.renderer-template }}
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Upload compiled app
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{inputs.app-version}}-${{inputs.renderer-template}}
name: ${{ matrix.os }}-${{inputs.renderer-template}}
path: dist
11 changes: 6 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
renderer-template:
required: true
type: string
app-version:
required: true
type: string

defaults:
run:
Expand Down Expand Up @@ -41,11 +38,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/init-template-with-renderer
name: Init template
name: Init template with "${{inputs.renderer-template}}" renderer
with:
renderer-template: ${{inputs.renderer-template}}

- run: rm -rf packages/renderer

- name: Download compiled app
uses: actions/download-artifact@v4
with:
name: ${{ matrix.os }}-${{inputs.app-version}}-${{inputs.renderer-template}}
name: ${{ matrix.os }}-${{inputs.renderer-template}}

- run: npm run test --if-present

0 comments on commit 4fc9793

Please sign in to comment.