バックエンドを整理、TypeScript導入 #26
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build-frontend: | |
name: Build Frontend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
cache: npm | |
- name: Install Node Packages | |
run: npm ci | |
working-directory: front | |
shell: bash | |
- name: Build | |
run: npm run build | |
working-directory: front | |
shell: bash | |
eslint: | |
name: ESLint (including Prettier) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
cache: npm | |
- name: Install Node Packages | |
run: npm ci | |
working-directory: front | |
shell: bash | |
- name: Run ESLint | |
run: npm run lint | |
working-directory: front | |
shell: bash | |
type-check-frontend: | |
name: Type Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
cache: npm | |
- name: Install Node Packages | |
run: npm ci | |
working-directory: front | |
shell: bash | |
- name: Type Check | |
run: npx tsc --noEmit | |
working-directory: front | |
shell: bash |