scss への置き換え / ダークモード対応 / トップページデザイン改修 #45
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: client | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- client/** | |
- .github/workflows/client.yaml | |
workflow_dispatch: | |
jobs: | |
setup-packages: | |
name: check npm packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: client | |
- 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/ | |
gen-api: | |
name: generate and upload api files | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
client | |
docs/openapi.yaml | |
- name: npm ci | |
run: npm ci | |
working-directory: ./client/ | |
- name: generate api | |
run: npm run api-client | |
working-directory: ./client/ | |
- name: upload api files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apis | |
path: ./client/src/lib/apis/generated | |
build-check: | |
name: check npm build | |
needs: [setup-packages, gen-api] | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: client | |
- 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: download api files | |
uses: actions/download-artifact@v4 | |
with: | |
name: apis | |
path: ./client/src/lib/apis/generated | |
- name: Run build | |
run: npm run build | |
working-directory: ./client/ |