* Parallel CI * Add build to integration test * Add checkout to top of each run * Revert branch update for ci job * Experiment with --runInBand for CI * Fix intermittent backend-core migration test failure * Fix hanging worker redis connection * Update naming from reset to newTenant
91 lines
2.2 KiB
YAML
91 lines
2.2 KiB
YAML
name: Budibase CI
|
|
|
|
on:
|
|
# Trigger the workflow on push or pull request,
|
|
# but only for the master branch
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- develop
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
BRANCH: ${{ github.event.pull_request.head.ref }}
|
|
BASE_BRANCH: ${{ github.event.pull_request.base.ref}}
|
|
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- run: yarn
|
|
- run: yarn lint
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- name: Install Pro
|
|
run: yarn install:pro $BRANCH $BASE_BRANCH
|
|
- run: yarn
|
|
- run: yarn bootstrap
|
|
- run: yarn build
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- name: Install Pro
|
|
run: yarn install:pro $BRANCH $BASE_BRANCH
|
|
- run: yarn
|
|
- run: yarn bootstrap
|
|
- run: yarn test
|
|
- uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
|
files: ./packages/server/coverage/clover.xml,./packages/worker/coverage/clover.xml,./packages/backend-core/coverage/clover.xml
|
|
name: codecov-umbrella
|
|
verbose: true
|
|
|
|
integration-test:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
couchdb:
|
|
image: ibmcom/couchdb3
|
|
env:
|
|
COUCHDB_PASSWORD: budibase
|
|
COUCHDB_USER: budibase
|
|
ports:
|
|
- 4567:5984
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- name: Install Pro
|
|
run: yarn install:pro $BRANCH $BASE_BRANCH
|
|
- run: yarn
|
|
- run: yarn bootstrap
|
|
- run: yarn build
|
|
- run: |
|
|
cd qa-core
|
|
yarn
|
|
yarn api:test:ci
|