create-envfileの手順を削除し、envとしてREACT_APP_YUMEMI_API_KEYを直接設定 #16
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: | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: yarn install | |
run: yarn install | |
- name: eslint review | |
uses: reviewdog/action-eslint@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
eslint_flags: "./**/*.{js,mjs,cjs,ts,jsx,tsx}" | |
- name: Run eslint | |
run: yarn lint | |
- name: Run Jest | |
run: yarn jest | |
env: | |
REACT_APP_YUMEMI_API_KEY: ${{ secrets.YUMEMI_API_KEY }} | |
- name: Upload test coverage artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: coverage | |
- name: Show coverage in comments | |
uses: MishaKav/jest-coverage-comment@main |