Skip to content

Commit c7a7f4d

Browse files
authored
Merge pull request #2 from BayLibre/githubtest
Add github tests
2 parents 8139f51 + e8247da commit c7a7f4d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# yamllint disable rule:line-length
3+
name: Test healthcheck repo
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
pull_request:
8+
9+
jobs:
10+
simpletest:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Verify healthcheck docker build and up
15+
run: |
16+
sudo apt-get -y install git lavacli
17+
git clone https://github.com/Baylibre/lava-docker
18+
cd lava-docker && ./lavalab-gen.py boards-ci-hc.yaml
19+
cd output/local && docker compose build
20+
- name: Launch lava-docker
21+
run: cd lava-docker/output/local && docker compose up -d
22+
- name: Wait for LAVA to be started
23+
run: cd lava-docker && sh .github/workflows/wait-for-docker.sh
24+
- name: Wait for first job to be completed
25+
# yamllint disable-line rule:line-length
26+
run: cd lava-docker/ && sh .github/workflows/lavacli.sh jobs wait 1
27+
- name: Check if all is okay
28+
# yamllint disable-line rule:line-length
29+
run: cd lava-docker/ && sh .github/workflows/lavacli.sh health 1

0 commit comments

Comments
 (0)