VueTorrent/.github/workflows/test.yml

26 lines
726 B
YAML
Raw Normal View History

2021-01-27 13:24:23 +01:00
name: Test Core Components
on:
push
jobs:
test-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
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: Install & test
uses: actions/setup-node@master
- run: npm ci
- run: npm run test:unit