Skip to content

FEAT: Node modules upgraded (#18) #35

FEAT: Node modules upgraded (#18)

FEAT: Node modules upgraded (#18) #35

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Test & Lint
on:
push:
branches: [ "*", "!master"]
pull_request:
branches: [ "*" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Setup node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install node_modules
run: |
npm ci
- name: Build bundle
run: npm run build --if-present
- name: Run lint
run: npm run lint
- name: Run tests
run: npm run test:coverage
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage/lcov-report/