Merge pull request #214 from traP-jp:fix/responsiveDesign #196
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: Client | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- client/**/* | |
- .github/workflows/client.yaml | |
pull_request: | |
paths: | |
- client/**/* | |
- .github/workflows/client.yaml | |
jobs: | |
package: | |
name: Check npm install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ./client/.node-version | |
cache: npm | |
cache-dependency-path: ./client/package-lock.json | |
- name: npm ci | |
run: npm ci | |
working-directory: ./client/ | |
format: | |
name: Run format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ./client/.node-version | |
cache: npm | |
cache-dependency-path: ./client/package-lock.json | |
- name: npm ci | |
run: npm ci | |
working-directory: ./client/ | |
- name: Run fmt | |
run: npm run fmt:check | |
working-directory: ./client/ | |
lint: | |
name: Run lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ./client/.node-version | |
cache: npm | |
cache-dependency-path: ./client/package-lock.json | |
- name: npm ci | |
run: npm ci | |
working-directory: ./client/ | |
- name: Run lint | |
run: npm run lint | |
working-directory: ./client/ | |
build: | |
name: Run build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ./client/.node-version | |
cache: npm | |
cache-dependency-path: ./client/package-lock.json | |
- name: npm ci | |
run: npm ci | |
working-directory: ./client/ | |
- name: Run build | |
run: npm run build | |
working-directory: ./client/ |