-
-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (43 loc) · 1.18 KB
/
pr-leia-tests.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
name: Run Leia Tests
on:
pull_request:
jobs:
leia-tests:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
matrix:
leia-tests:
- examples/basics
os:
- windows-2022
- ubuntu-22.04
- macos-14
node-version:
- '16'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile
- name: Build package and PATH it
shell: bash
run: |
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$PATH"
yarn build
mv ./dist/@lando/hyperdrive "$HOME/.local/bin/hyperdrive"
chmod +x "$HOME/.local/bin/hyperdrive"
- name: Verify package
shell: bash
run: hyperdrive test
- name: Run leia tests
shell: bash
run: yarn leia "./${{ matrix.leia-tests }}/README.md" -c --stdin --shell bash