-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (45 loc) · 1.45 KB
/
cli.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CLI
# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
kind:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [16.x]
shell: [/bin/bash, /bin/zsh]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# the linux image for github actions does not include zsh
# FIXME: ugh, apt permissions errors ensue if we do this...
# - name: Install zsh on Linux
# run: sudo apt-get update; sudo apt-get install zsh
# if: matrix.os == 'ubuntu-latest'
- run: npm ci && npm run build:headless
shell: bash
env:
NODE_OPTIONS: "--max_old_space_size=8192"
- name: Run Test (with bash and zsh)
env:
EXECUTABLE_PATH: github-actions-production
SHELL: ${{ matrix.shell }}
run: ./tests/cli/run.sh
if: matrix.os == 'macOS-latest'
- name: Run Test (with bash)
env:
EXECUTABLE_PATH: github-actions-production
run: ./tests/cli/run.sh
if: matrix.os != 'macOS-latest' && matrix.shell == '/bin/bash'