-
Notifications
You must be signed in to change notification settings - Fork 60
43 lines (34 loc) · 972 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install Node.js packages
run: yarn install
- name: Build Node.js test code
run: yarn run build:test
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}-cache0
- name: Pull Docker image
run: docker pull gristlabs/grist:latest
- name: Run tests
run: MOCHA_WEBDRIVER_HEADLESS=1 yarn run test