Skip to content

Merge remote-tracking branch 'ts-package-template/main' #6

Merge remote-tracking branch 'ts-package-template/main'

Merge remote-tracking branch 'ts-package-template/main' #6

Workflow file for this run

name: Commit checks
on: push
env:
FORCE_COLOR: 1
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Configure npm cache
run: npm config set cache "$(pwd)/.npm-cache"
- uses: actions/cache@v3
with:
path: .npm-cache
key: npm-cache-${{ hashFiles('package-lock.json') }}
restore-keys: npm-cache-
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Configure npm cache
run: npm config set cache "$(pwd)/.npm-cache"
- uses: actions/cache@v3
with:
path: .npm-cache
key: npm-cache-${{ hashFiles('package-lock.json') }}
restore-keys: npm-cache-
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run coverage