Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
atomic-kanta-sasaki committed Jun 22, 2024
1 parent b7768c4 commit bb1363f
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,23 @@ env:
WORKING_DIRECTORY: .

jobs:
Test:
name: Run test codes
if: |
github.event.pull_request.draft == false
&& !startsWith(github.head_ref, 'release')
&& !startsWith(github.head_ref, 'doc')
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}
build:
reuns-on: ubuntu-latest

strategy:
matrix:
node-version: [18.12.1]

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install and cache nodejs
uses: actions/setup-node@v3
- uses: actions/checkout@v4

- name: Cache node modules
uses: actions/cache@v4
with:
node-version-file: ${{ env.WORKING_DIRECTORY }}/package.json
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install packages
path: ~/.npm

- name: Install dependencies
run: npm ci
- name: Show coverage
run: npm test -- --bail --maxWorkers=100% --watchAll=false --coverage

- name: Run Jest
run: npm run test -- --ci --passWithNoTests

0 comments on commit bb1363f

Please sign in to comment.