Skip to content

implement youtube download #709

implement youtube download

implement youtube download #709

Workflow file for this run

name: CI
on: [push]
env:
MIX_ENV: test
jobs:
lint:
runs-on: ubuntu-20.04 # Remember to update this when changing Erlang version. See https://github.com/erlef/setup-beam
steps:
- uses: actions/checkout@v1
- uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- name: Check format
run: mix format --check-formatted
test:
runs-on: ubuntu-20.04 # Remember to update this when changing Erlang version. See https://github.com/erlef/setup-beam
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
services:
db:
image: postgres:9.6
ports: ["5432:5432"]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- name: Install dependencies
run: mix deps.get
- name: Prepare DB
run: mix ecto.create && mix ecto.migrate
- name: Run tests
run: mix coveralls.github --umbrella