-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (40 loc) · 1.32 KB
/
build-check.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
name: Container Build
on:
pull_request:
branches: [ "main" ]
jobs:
build-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup environment
run: mv .env.example .env
- name: Build containers
run: docker compose build
- name: Get latest api version
run: cd api && git checkout origin/main
- name: Get latest helioviewer.org version
run: cd helioviewer.org && git checkout origin/main
- name: Make writeable configuration files
run: |
touch api/install/settings/settings.cfg
chmod o+rw api/install/settings/settings.cfg
touch api/settings/Config.ini
chmod o+rw api/settings/Config.ini
touch api/settings/Config.php
chmod o+rw api/settings/Config.php
- name: Check that containers start and become healthy
run: docker compose up -d --wait
- name: Print logs
if: always()
run: |
docker logs helioviewer-api-1
docker logs helioviewer-web-1
docker logs helioviewer-database-1
docker logs helioviewer-movies-1
- name: Test Helioviewer environment
run: |
bash tests/test_make_movie.sh
bash tests/test_aia_images.sh