Skip to content

Merge pull request #36 from mas0061/renovate/dependencies-minor-ver #84

Merge pull request #36 from mas0061/renovate/dependencies-minor-ver

Merge pull request #36 from mas0061/renovate/dependencies-minor-ver #84

Workflow file for this run

name: Nuxt CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
pull-requests: write
checks: write
jobs:
checkVulnerability:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: run 'npm audit'
run: npm audit --audit-level moderate
setupAndValidate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: run 'npm ci'
run: npm ci
- name: run ESLint
run: npm run lint
- name: run build
run: npm run build
- name: run Test
run: npm run test
- name: Publish test results
uses: mikepenz/action-junit-report@v3
if: success() || failure()
with:
report_paths: reports/junit.xml
- name: Publish test coverage
uses: actions/upload-artifact@v3
with:
name: test-coverage
path: reports/coverage
- name: Code Coverage Summary Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: reports/coverage/cobertura-coverage.xml
fail_below_min: true
thresholds: '1 75'
format: markdown
badge: true
output: both
- name: Add coverage to PR comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md