Merge pull request #1319 from syucream/feature/react-strict-mode #806
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: Build frontend | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- 'frontend/**/*.ts' | |
- 'frontend/**/*.tsx' | |
- '.github/workflows/build-frontend.yml' | |
- 'package-lock.json' | |
- '*.config.js' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://npm.pkg.github.com/ | |
scope: '@dmm-com' | |
cache: 'npm' | |
- name: install dependencies | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: lint | |
run: npm run lint | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://npm.pkg.github.com/ | |
scope: '@dmm-com' | |
cache: 'npm' | |
- name: install dependencies | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: build | |
run: npm run build:development | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://npm.pkg.github.com/ | |
scope: '@dmm-com' | |
cache: 'npm' | |
- name: install dependencies | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: test | |
run: npm run test | |
- name: codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
flags: ui | |
continue-on-error: true |