This commit is contained in:
parent
90f34dc367
commit
70dea5e97c
1 changed files with 10 additions and 0 deletions
10
.github/workflows/sonar.yml
vendored
10
.github/workflows/sonar.yml
vendored
|
|
@ -18,6 +18,11 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Restore npm cache
|
||||
uses: https://code.forgejo.org/forgejo/cache-action@v3
|
||||
with:
|
||||
key: npm-${{ hashFiles('package-lock.json') }}
|
||||
path: ~/.npm
|
||||
- name: Setup node environment
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
|
|
@ -25,6 +30,11 @@ jobs:
|
|||
cache: "npm"
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Save npm cache
|
||||
uses: https://code.forgejo.org/forgejo/cache-action@v3
|
||||
with:
|
||||
key: npm-${{ hashFiles('package-lock.json') }}
|
||||
path: ~/.npm
|
||||
- name: Run tests and generate coverage
|
||||
run: npm run coverage
|
||||
# continue-on-error: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue