Skip to content

Merge pull request #1321 from dmm-com/feature/new-ui/advanced_search_… #801

Merge pull request #1321 from dmm-com/feature/new-ui/advanced_search_…

Merge pull request #1321 from dmm-com/feature/new-ui/advanced_search_… #801

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