Skip to content

ci: update workflows #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- run: pnpm build

- name: 🔺 Upload frontend distribution artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build_distribution
path: theme/dist
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: actions/checkout@v3

- name: 🔻 Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build_distribution
path: theme/dist
Expand All @@ -49,14 +49,11 @@ jobs:

- run: pnpm build:testing

- name: 🔺 Upload playground artifacts
- name: 🔺 Upload Page artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
uses: actions/upload-pages-artifact@v3
with:
name: build_distribution_testing
path: testing/dist
if-no-files-found: error
retention-days: 1

unit_tests:
name: 🧪 Unit Tests
Expand Down Expand Up @@ -102,7 +99,7 @@ jobs:

- name: ⬆️ Upload Difference Images
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: visual-test-screenshots
path: ./testing/artifacts/image_diffs
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/draft-next-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

name: ✍️ Release Drafter

permissions:
contents: write

on:
push:
branches:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/publish-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: 🔻 Download playground artifacts
uses: actions/download-artifact@v3
with:
name: build_distribution_testing
path: testing/dist

- name: Upload Page artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: testing/dist

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 5 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
name: 🧪 Tests

on:
workflow_dispatch:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize', 'ready_for_review']
workflow_call:
push:
# Run this only on branches that are not main
branches-ignore:
- main

jobs:
tests:
Expand Down
Loading