Skip to content

Merge pull request #1320 from syucream/fix/dependenpes #804

Merge pull request #1320 from syucream/fix/dependenpes

Merge pull request #1320 from syucream/fix/dependenpes #804

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