VueTorrent/.github/workflows/test.yml
Jef LeCompte d217627d9a
feat: auto releasing ci (#146)
* feat: auto releasing ci

* chore: pin major version for upload-release-asset

* ci: remove duplicate install deps

* docs: update readme

* chore: remove deprecated release script

Co-authored-by: Daan Wijns <dw.daanwijns@gmail.com>
2021-02-07 19:18:14 +01:00

29 lines
683 B
YAML

name: Test Core Components
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test-core:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build Node.js cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:unit