test2 #131
Workflow file for this run
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: run-jest | |
on: | |
push: | |
paths: | |
- "src/**.tsx" | |
- "src/**.ts" | |
- "public/**.html" | |
- ".github/workflows/react-jest.yaml" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
frontend-jest: # job id(typed by user) | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
# デフォルトのワーキングディレクトリのため設定不要だが,明示的に指定。 | |
defaults: | |
run: | |
working-directory: /home/runner/work/devsecops-demo-aws-ecs/devsecops-demo-aws-ecs | |
strategy: | |
matrix: | |
node-version: [20, 22] | |
steps: | |
# checkout repository to runner | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: set up node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: $ {{ matrix.node-version } | |
- name: install package using aqua | |
uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1 | |
with: | |
aqua_version: v2.29.0 | |
- name: install dependencies | |
run: github-comment exec --token ${{ secrets.token }} -- npm install | |
- name: run npm test | |
run: github-comment exec --token ${{ secrets.token }} -- npm test -- --watchall=false |