Release:2023/9/2 #215
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: 'develop' | |
pull_request: | |
branches: ['main', 'develop'] | |
jobs: | |
eslint: | |
name: Run eslint scanning | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code #コードを持ってくる | |
uses: actions/checkout@v3 | |
- name: Install ESLint #ESlintをインストールする | |
run: | | |
npm install [email protected] | |
npm install @microsoft/[email protected] | |
- name: Build #build test | |
run: npm run build | |
- name: Run ESLint #ESLintを実行する | |
run: npx eslint ./src --ext .js,.jsx,.ts,.tsx --format @microsoft/eslint-formatter-sarif | |
--output-file eslint-results.sarif | |
continue-on-error: true | |
- name: Upload analysis results to GitHub #githubに解析結果をアップロード | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: eslint-results.sarif | |
wait-for-processing: true | |
rome: | |
name: Run rome scanning | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code #コードを持ってくる | |
uses: actions/checkout@v3 | |
- name: Install Rome #romeをインストールする | |
run: | | |
npm install [email protected]\ | |
- name: Build #build test | |
run: npm run build | |
- name: Run Rome #romeを実行 | |
run: npx rome check ./src |