skolplattformen-backup/libs/api-skolplattformen/.github/workflows/test.yml

27 lines
607 B
YAML
Raw Normal View History

2020-12-20 22:38:35 +00:00
# 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
2021-03-30 18:28:55 +00:00
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Stockholm
2020-12-20 22:38:35 +00:00
- run: yarn install --immutable --silent --non-interactive 2> >(grep -v warning 1>&2)
- run: yarn lint
2021-03-30 18:28:55 +00:00
- run: yarn test