Skip to content

テストデプロイ時に出たエラー #39

テストデプロイ時に出たエラー

テストデプロイ時に出たエラー #39

on:
pull_request:
branches:
- develop
paths:
- "view-user/**"
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: view-user/package-lock.json
- run: npm install
working-directory: view-user
# - name: prettier format
# run: npm run format
# working-directory: view-user
- name: lint
run: npm run lint:fix
working-directory: view-user
# - uses: stefanzweifel/[email protected]
# with:
# branch: develop
# commit_message: formatted by workflow
# commit_options: '--no-verify'
lint_check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: view-user/package-lock.json
- name: Install Dependencies
run: npm ci
working-directory: view-user
- name: Run ESLint Reviewdog
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
eslint_flags: "src/**/*.{ts,tsx}"
workdir: view-user