mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
45141ed438
Summary: Activate CI for grist-core using github actions. Can be improved with caching but starting simple. Test Plan: tested in a fork of grist-core Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2771
46 lines
1016 B
YAML
46 lines
1016 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
# Allows running this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [2.7]
|
|
node-version: [10.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Python packages
|
|
run: |
|
|
pip install virtualenv
|
|
yarn run install:python
|
|
|
|
- name: Install Node.js packages
|
|
run: yarn install
|
|
|
|
- name: Build Node.js code
|
|
run: yarn run build:prod
|
|
|
|
- name: Run tests
|
|
run: VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test
|