Skip to content

Merge pull request #1378 from terrestris/dependabot/npm_and_yarn/type… #863

Merge pull request #1378 from terrestris/dependabot/npm_and_yarn/type…

Merge pull request #1378 from terrestris/dependabot/npm_and_yarn/type… #863

name: Test including coverage
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache Node.js modules 💾
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies ⏬
run: npm install
- name: Generate coverage 🧪
run: npm run test:ci
- name: Publish to coveralls ⭐
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}