Release #137
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: Static Check | |
on: | |
pull_request: | |
branches: | |
- develop | |
- main | |
jobs: | |
check: | |
name: ESLint & Typescript & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Set node version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Cache dependencies | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn install --immutable | |
- name: Cache Example dependencies | |
id: cache-example | |
uses: actions/cache@v3 | |
with: | |
path: 'example/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('example/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ hashFiles('example/yarn.lock') }} | |
${{ runner.os }}-node- | |
- name: Install Example dependencies | |
if: steps.cache-example.outputs.cache-hit != 'true' | |
working-directory: example | |
run: yarn install --immutable | |
- name: Check Lint | |
run: yarn check:lint | |
- name: Check TypeScript | |
run: yarn check:type | |
- name: Test | |
run: yarn check:test |