fix test #336
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-test | |
on: | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- v* # don't run on tags since release does that | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install Docker | |
uses: docker-practice/actions-setup-docker@master | |
- name: Build Image | |
run: docker build . | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Update things | |
run: sudo apt-get update | |
- name: install libs | |
run: sudo apt install ffmpeg npm libsqlite3-dev python3 python-is-python3 | |
- name: install youtube-dl | |
run: sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl | |
- name: Install Rust | |
uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: 'stable' | |
- name: Test daemon | |
working-directory: ./musidex-daemon | |
run: cargo test --verbose | |
- name: Install web | |
working-directory: ./musidex-web | |
run: npm install | |
- name: Build web | |
working-directory: ./musidex-web | |
run: CI= npm run build |