This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
Update dependency lint-staged to v11.2.6 #762
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
# Document: https://help.github.com/ja/actions | |
name: CHECK BUILD | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
storybook: | |
name: Storybook can be generated | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [14] | |
steps: | |
- name: Checkout π ${{ matrix.node }} | |
uses: actions/checkout@master | |
- name: Setup node env π | |
uses: actions/setup-node@v2.5.2 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: Get yarn cache directory path π | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache node_modules π¦ | |
uses: actions/cache@v2.1.8 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies π¨π»βπ» | |
run: yarn install --frozen-lockfile | |
- name: Run Build π | |
run: yarn generate:storybook | |
- name: Put Artifact π | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Storybook | |
path: storybook-static | |
build: | |
name: App can be generated | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [14] | |
steps: | |
- name: Checkout π ${{ matrix.node }} | |
uses: actions/checkout@master | |
- name: Setup node env π | |
uses: actions/setup-node@v2.5.2 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: Get yarn cache directory path π | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache node_modules π¦ | |
uses: actions/cache@v2.1.8 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies π¨π»βπ» | |
run: yarn install --frozen-lockfile | |
- run: yarn generate --fail-on-error |