Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Merge pull request #16 from adobe/linting #13

Merge pull request #16 from adobe/linting

Merge pull request #16 from adobe/linting #13

name: Install, lint, and test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
run-tests:
name: Running tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint the code
run: npm run lint
# - name: Run the tests
# run: npm test
# - name: Setup LCOV
# uses: hrishikesh-kadam/setup-lcov@v1
# - name: Report code coverage
# uses: zgosalvez/github-actions-report-lcov@v4
# with:
# coverage-files: coverage/lcov.info
# minimum-coverage: 85
# artifact-name: code-coverage-report
# github-token: ${{ secrets.GITHUB_TOKEN }}
# update-comment: true