NDLから書影を受け取るように修正 #2809
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: main | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
packages: | |
name: Packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
genApi: | |
name: Generate APIs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- run: npm run gen-api | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: apis | |
path: ./src/lib/apis/generated | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [packages, genApi] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- uses: actions/download-artifact@v3 | |
with: | |
name: apis | |
path: ./src/lib/apis/generated | |
- run: npm run build | |
env: | |
NODE_ENV: production | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
needs: [packages, genApi] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- uses: actions/download-artifact@v3 | |
with: | |
name: apis | |
path: ./src/lib/apis/generated | |
- run: npm run lint -- --max-warnings=0 | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
needs: [packages, genApi] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- uses: actions/download-artifact@v3 | |
with: | |
name: apis | |
path: ./src/lib/apis/generated | |
- run: npx prettier --check . | |
typeCheck: | |
name: Type Check | |
runs-on: ubuntu-latest | |
needs: [packages, genApi] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- uses: actions/download-artifact@v3 | |
with: | |
name: apis | |
path: ./src/lib/apis/generated | |
- run: npm run type-check |