28 lines
631 B
YAML
28 lines
631 B
YAML
# This workflow will do a clean install of node dependencies and run tests
|
|
|
|
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
unit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Node.js and run tests
|
|
uses: actions/setup-node@v2.1.2
|
|
with:
|
|
node-version: 14.x
|
|
|
|
- name: Setup timezone
|
|
uses: zcong1993/setup-timezone@master
|
|
with:
|
|
timezone: Europe/Stockholm
|
|
|
|
- run: yarn install --immutable --silent --non-interactive 2> >(grep -v warning 1>&2)
|
|
- run: yarn audit
|
|
- run: yarn lint
|
|
- run: yarn test
|