Skip to content

Remove uneeded package #3

Remove uneeded package

Remove uneeded package #3

Workflow file for this run

name: Lint, build, and Test
on: push
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Run eslint
run: npm run lint && npm run tsc
- name: Build with TypeScript
run: npm run build --if-present
- name: Run tests
run: npm run test:coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3