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 #1363
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: CI TEST | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- develop | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
ci: | |
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 format linter π | |
run: yarn lint:format | |
- name: Run script linter π | |
run: yarn lint:script | |
- name: Run style linter π | |
run: yarn lint:style | |
- name: Run tests π§ͺ | |
run: yarn test |