ci: multiple CI jobs

pull/4/head
Cameron Clough 2022-03-21 21:57:23 +00:00
parent b00fd915b3
commit 28285df723
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
1 changed files with 14 additions and 2 deletions

View File

@ -3,14 +3,26 @@ name: Build and test
on: [push, pull_request]
jobs:
build:
name: Build and test
docker:
name: Build Docker image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: docker build -t retropilot-server:latest .
lint:
name: Run linter
runs-on: ubuntu-20.04
needs: docker
steps:
- name: Run linter
run: docker run --rm retropilot-server:latest npm run lint
test:
name: Run tests
runs-on: ubuntu-20.04
needs: docker
steps:
- name: Run tests
run: docker run --rm --env-file .env.sample -v /tmp/realdata:/app/realdata retropilot-server:latest npm test