Skip to content

Update dependencies #11

Update dependencies

Update dependencies #11

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
DISPLAY: ':0'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v3
id: cache-npm
env:
cache-name: cache-node-modules
with:
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: NodeJS
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: https://registry.npmjs.org/
- name: Install
run: |
node --version
npm --version
npm ci
- name: Lint
run: |
npm run lint
npm run check-writing
- name: Install Chrome
uses: browser-actions/setup-chrome@latest
- name: Install Firefox
uses: browser-actions/setup-firefox@latest
- name: Start Xvfb
run: |
sudo apt-get install xvfb && \
Xvfb $DISPLAY &> /dev/null &
- name: Test
run: npm run coverage
env:
KARMA_BROWSERS: Firefox,Chrome
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ github.workspace }}/coverage/lcov.info
- name: CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: ${{ github.workspace }}/coverage/lcov.info:lcov