Skip to content

Merge pull request #96 from mcode/fix-missing-search-codes #1339

Merge pull request #96 from mcode/fix-missing-search-codes

Merge pull request #96 from mcode/fix-missing-search-codes #1339

Workflow file for this run

name: Lint and Test
on: [push, pull_request]
permissions:
pull-requests: read
jobs:
lint:
name: Check lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm install
- run: npm run lint
env:
CI: true
test:
name: Run tests and coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm install
- run: npm run test:ci
env:
CI: true
- name: Scan with SonarCloud
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Code Coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}