-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.41 KB
/
local-remote-execution.yaml
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
---
name: 🚀 Local Remote Execution
"on":
push:
branches: [main]
pull_request:
branches: [main]
permissions: read-all
jobs:
lre-remote:
strategy:
fail-fast: false
matrix:
os: [large-ubuntu-22.04]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- name: Checkout
uses: >- #v4.1.6
actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: Install Nix
uses: >- # v11
DeterminateSystems/nix-installer-action@8cdf194da984e4f12b2f8c36d1fa107c1dd67f5c
- name: Cache Nix derivations
uses: >- # v6
DeterminateSystems/magic-nix-cache-action@87e8236f46702ab0ce5a058b605a173ec88d618e
- name: Start Kubernetes cluster
run: >
nix run .#lre-mojo-cluster
- name: Print cluster state
run: |
kubectl get svc -A
kubectl get pod -A
kubectl get svc -A
kubectl get deployments -A
kubectl describe gtw
echo "cas"
kubectl logs -l app=nativelink-cas
echo "scheduler"
kubectl logs -l app=nativelink-scheduler
echo "worker"
kubectl logs -l app=nativelink-worker
- name: Run Mojo tests against the cluster
run: |
nix develop --impure --command \
bash -c "lre-bazel test --jobs=$(nproc) @mojo//... --verbose_failures"