mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 12:00:01 +03:00
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
988 B
YAML
40 lines
988 B
YAML
name: Tests
|
|
'on':
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
|
|
jobs:
|
|
test:
|
|
name: 'Backend - mocha'
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node:
|
|
- 16
|
|
steps:
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '${{ matrix.node }}'
|
|
- uses: actions/checkout@v4
|
|
- name: 'Cache node_modules'
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-v${{ matrix.node }}-
|
|
working-directory: ./backend
|
|
- uses: FedericoCarboni/setup-ffmpeg@v2
|
|
id: setup-ffmpeg
|
|
- name: Install Dependencies
|
|
run: npm install
|
|
working-directory: ./backend
|
|
- name: Run All Node.js Tests
|
|
run: npm run test
|
|
working-directory: ./backend |