Skip to content

Merge pull request #124 from hifiwi-fi/dependabot/pip/ytdlp-server/yt… #422

Merge pull request #124 from hifiwi-fi/dependabot/pip/ytdlp-server/yt…

Merge pull request #124 from hifiwi-fi/dependabot/pip/ytdlp-server/yt… #422

Workflow file for this run

name: tests
on: [pull_request, push]
env:
FORCE_COLOR: 1
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python_version: ['3.x']
node_version: ['lts/*']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: 'x64'
- name: Install Flake8
run: |
pip install flake8
working-directory: ytdlp-server
- name: Run Flake8
run: |
flake8 . --max-line-length=120
working-directory: ytdlp-server
- name: Install Protoc using apt-get
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Verify protoc installation
run: protoc --version
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- run: npm i
- run: npm test