build(deps): bump jest-message-util from 29.3.1 to 29.7.0 #1241
Workflow file for this run
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
name: CI | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
stylelint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: get yarn cache directory path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache key and directory for node_modules cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: yarn | |
run: yarn --frozen-lockfile | |
- name: stylelint | |
run: yarn lint-style | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: get yarn cache directory path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache key and directory for node_modules cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: yarn | |
run: yarn --frozen-lockfile | |
- name: lint | |
run: yarn lint-eslint | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: get yarn cache directory path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache key and directory for node_modules cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: yarn | |
run: yarn --frozen-lockfile | |
- name: prettier | |
run: yarn lint-prettier | |
jest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: get yarn cache directory path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache key and directory for node_modules cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: yarn | |
run: yarn --frozen-lockfile | |
- name: test | |
run: yarn test --coverage | |
build: | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/main' # Building is also part of the deployment action | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: get yarn cache directory path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache key and directory for node_modules cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: yarn | |
run: yarn --frozen-lockfile | |
- name: build | |
run: yarn build | |
deploy: | |
runs-on: ubuntu-latest | |
needs: | |
- stylelint | |
- eslint | |
- prettier | |
- jest | |
if: success() && github.ref == 'refs/heads/main' | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: get yarn cache directory path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache key and directory for node_modules cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: yarn | |
run: yarn --frozen-lockfile | |
- name: Build Storybook | |
run: yarn build | |
- name: Deploy Storybook | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./storybook-static |