-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split up jobs into separate pipelines
- Loading branch information
1 parent
f546f37
commit 94b6c8f
Showing
4 changed files
with
126 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: '*' | ||
pull_request: | ||
branches: '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
|
||
steps: | ||
- name: 🛎️ Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # All history for branches and tags | ||
|
||
- name: 📦 Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: 🛠️ Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ matrix.node-version }}' | ||
cache: pnpm | ||
|
||
- name: 📂 Install Dependencies | ||
run: pnpm i | ||
|
||
- name: 🤖 Run Semantic Release | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: pnpm exec semantic-release | ||
|
||
- name: 💰 Profit | ||
run: echo 🐞 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: End-to-End Tests | ||
|
||
on: | ||
push: | ||
branches: '*' | ||
pull_request: | ||
branches: '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
|
||
steps: | ||
- name: 🛎️ Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # All history for branches and tags | ||
|
||
- name: 📦 Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: 🛠️ Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ matrix.node-version }}' | ||
cache: pnpm | ||
|
||
- name: 📂 Install Dependencies | ||
run: pnpm i | ||
|
||
- name: 🧐 Check Code Quality | ||
run: pnpm lint | ||
|
||
# - name: 🎭 Install Playwright | ||
# run: pnpm i playwright http-server wait-on; npx playwright install --with-deps | ||
|
||
- name: 💰 Profit | ||
run: echo 🐞 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Visual Tests | ||
|
||
on: | ||
push: | ||
branches: main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
|
||
steps: | ||
- name: 🛎️ Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # All history for branches and tags | ||
|
||
- name: 📦 Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: 🛠️ Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ matrix.node-version }}' | ||
cache: pnpm | ||
|
||
- name: 📂 Install Dependencies | ||
run: pnpm i | ||
|
||
- name: 👀 Run Visual Tests | ||
env: | ||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
run: pnpm chromatic | ||
|
||
- name: 💰 Profit | ||
run: echo 🐞 |