-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (65 loc) · 2.23 KB
/
ci-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Run Tests
on:
workflow_dispatch:
concurrency:
group: "test"
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Setup `node`
uses: actions/setup-node@v3
with:
node-version: '20.10'
- name: Restore `lively.next` installation
id: cache-lively-with-build
uses: actions/cache/restore@v3
env:
cache-name: lively-repo-with-build
ref: 9c51c586cfca90d3df3c4439a9677adfa40476de
with:
path: .
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.ref }}
- name: Checkout `lively.next`
if: ${{ steps.cache-lively-with-build.outputs.cache-hit != 'true' }}
uses: actions/checkout@v4
with:
repository: LivelyKernel/lively.next
ref: 9c51c586cfca90d3df3c4439a9677adfa40476de
- name: Prepare to install `lively.next`
run: chmod a+x ./install.sh
- name: Install `lively.next`
if: ${{ steps.cache-lively-with-build.outputs.cache-hit != 'true' }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 5
retry_on: error
command: ./install.sh
- name: Save `lively` installation in cache
if: ${{ steps.cache-lively-with-build.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v3
env:
cache-name: lively-repo-with-build
ref: 9c51c586cfca90d3df3c4439a9677adfa40476de
with:
path: .
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.ref }}
- name: Checkout Project Repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
path: local_projects/engageLively--galyleo-dashboard
- name: Checkout Project Dependencies
uses: actions/checkout@v4
with:
repository: LivelyKernel/partsbin
path: local_projects/LivelyKernel--partsbin/
- name: Start `lively.next`
run: |
./start-server.sh > /dev/null 2>&1 &
# wait until server is guaranteed to be running
sleep 30
- name: Run CI Test Script
run: ./scripts/test.sh engageLively--galyleo-dashboard