-
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.
Merge pull request #16 from aliefprihantoro/v2
try finish but still bug in storybook
- Loading branch information
Showing
82 changed files
with
1,851 additions
and
334 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: "Chromatic" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'src/**/*.ts' | ||
- '!src/**/*.d.ts' | ||
- 'src/**/*.css' | ||
- 'tailwind.config.mjs' | ||
- 'postcss.config.cjs' | ||
- 'astro.config.mjs' | ||
workflow_dispatch: | ||
inputs: | ||
my_input: | ||
description: 'testing e2e' | ||
required: true | ||
|
||
jobs: | ||
install: | ||
name: Install Project | ||
permissions: | ||
contents: write | ||
discussions: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm install | ||
build: | ||
name: Build Project | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: build blogger template | ||
run: pnpm build | ||
- name: build storybook | ||
run: pnpm build-storybook | ||
- uses: montudor/action-zip@v1 | ||
with: | ||
args: zip -qq -r storybook-static.zip storybook-static | ||
released: | ||
name: Released Project | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Release with Notes | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
dist/blogger.xml | ||
storybook-static.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,36 @@ | ||
name: e2e test | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
my_input: | ||
description: 'storybook' | ||
required: true | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- name: Install playwright browsers | ||
run: pnpx playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: pnpm playwright test | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
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,17 @@ | ||
name: OSV-Scanner Scheduled Scan | ||
|
||
on: | ||
schedule: | ||
- cron: "30 12 * * 1" | ||
push: | ||
branches: [master] | ||
|
||
permissions: | ||
# Require writing security events to upload SARIF file to security tab | ||
security-events: write | ||
# Only need to read contents | ||
contents: read | ||
|
||
jobs: | ||
scan-scheduled: | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected]" |
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,21 @@ | ||
name: "Chromatic" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
my_input: | ||
description: 'pagespeed' | ||
required: true | ||
|
||
jobs: | ||
chromatic: | ||
name: Run Chromatic | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Running Page Speed Insights | ||
uses: jakepartusch/[email protected] | ||
id: psi | ||
with: | ||
url: "https://serabingampinbuyuni.biz.id/?m=1" | ||
threshold: 70 | ||
key: ${{ secrets.APIKEY }} |
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 |
---|---|---|
|
@@ -23,3 +23,5 @@ pnpm-debug.log* | |
# jetbrains setting folder | ||
.idea/ | ||
build-storybook.log | ||
out/ | ||
storybook-static |
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
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
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
Oops, something went wrong.