-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ add pull request ci/cd pipeline (#1)
- Loading branch information
1 parent
612c01b
commit 06ad0a7
Showing
8 changed files
with
77 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ dist | |
pnmp-lock.yaml | ||
coverage | ||
playwright-report | ||
vite.config.ts.*.mjs |
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,39 @@ | ||
name: Install | ||
description: Install everything for the repo | ||
|
||
inputs: | ||
node-version: | ||
description: Version of Node to use | ||
default: 18.x | ||
|
||
pnpm-version: | ||
description: Version of pnpm to use | ||
default: 7.x | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: 🏗 Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
|
||
- name: 🏗 Setup pnpm cache | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: pnpm | ||
|
||
- name: 🏗 Setup turbo cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules/.cache/turbo | ||
.turbo | ||
key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-turbo- | ||
- name: 📦 Install deps | ||
run: pnpm install | ||
shell: bash |
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,22 @@ | ||
name: pull_request | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: ['18'] | ||
|
||
steps: | ||
- name: 🏗 Setup Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 📦 Install | ||
uses: ./.github/actions/install | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: 🦺 validate | ||
run: pnpm validate |
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 |
---|---|---|
|
@@ -31,3 +31,9 @@ coverage | |
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
|
||
# vite | ||
vite.config.ts.*.mjs | ||
|
||
# turbo | ||
.turbo |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ dist | |
pnpm-lock.yaml | ||
coverage | ||
playwright-report | ||
vite.config.ts.*.mjs |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"daisyui", | ||
"noreferrer", | ||
"Parens", | ||
"pnpm", | ||
"tailwindcss", | ||
"turborepo", | ||
"vite", | ||
|
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