🧧 Recommendations #1054
Workflow file for this run
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: Checks | |
on: [push, pull_request] | |
jobs: | |
local: | |
name: Local build, linting and formatting | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16.x] | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{matrix.node-version}} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{matrix.node-version}} | |
- name: Install npm packages | |
run: npm ci | |
- name: Run checks | |
run: npm run checks | |
docker: | |
name: Docker build check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16.x] | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{matrix.node-version}} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{matrix.node-version}} | |
- name: Build docker image | |
run: make build-docker | |
migrations: | |
name: Run migrations | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Prepare workspace | |
run: make prepare | |
- name: create joystream_default network | |
run: docker network create joystream_default | |
- name: Start db | |
run: docker-compose up -d orion_db | |
- name: Wait for db | |
run: | | |
while ! docker-compose exec -T orion_db pg_isready -U postgres -p 23798; do | |
sleep 1 | |
done | |
- name: Run migrations | |
run: make migrate |