Skip to content

Commit

Permalink
🐛 fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
reizt committed Sep 24, 2024
1 parent f504a4b commit f7f73ba
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 64 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,18 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Run actions/cache@v3
uses: actions/cache@v3
id: yarn-cache
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run yarn install
run: yarn
- name: Build storybook
run: yarn build-storybook
version: 8
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
cache: pnpm
- run: pnpm install
- run: pnpm storybook build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
27 changes: 11 additions & 16 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ jobs:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Run actions/cache@v3
uses: actions/cache@v3
id: yarn-cache
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run yarn install
run: yarn
- name: Build storybook
run: yarn build-storybook
version: 8
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
cache: pnpm
- run: pnpm install
- run: pnpm storybook build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
27 changes: 11 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@ jobs:
runs-on: ubuntu-22.04
name: Run Prettier and ESLint and tsc
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Run actions/cache@v3
uses: actions/cache@v3
id: yarn-cache
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run yarn install
run: yarn
- name: Run lint
run: yarn lint
version: 8
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
cache: pnpm
- run: pnpm install
- run: pnpm lint
27 changes: 11 additions & 16 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@ jobs:
runs-on: ubuntu-22.04
name: Run vitest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Run actions/cache@v3
uses: actions/cache@v3
id: yarn-cache
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run yarn install
run: yarn
- name: Run test
run: yarn test
version: 8
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
cache: pnpm
- run: pnpm install
- run: yarn test

0 comments on commit f7f73ba

Please sign in to comment.