2023-08-26 19:46:29 +01:00
|
|
|
name: Environment Setup Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
2023-08-26 19:57:25 +01:00
|
|
|
Setup:
|
2023-08-26 19:46:29 +01:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- run: cd ${{ github.workspace }}
|
|
|
|
- name: Run repository setup scripts
|
2023-08-26 19:47:22 +01:00
|
|
|
run: |
|
|
|
|
sh setup.sh
|
|
|
|
sh scripts/get-docker.sh
|
2023-08-28 16:35:13 +01:00
|
|
|
sh post-pull.sh
|
2023-08-26 19:46:29 +01:00
|
|
|
- name: Check if Docker was installed
|
2023-08-28 17:07:59 +01:00
|
|
|
run: docker run --rm --name hello-world hello-world
|
2023-08-28 17:37:56 +01:00
|
|
|
- name: Clean up network (see \#3)
|
2023-08-26 20:04:31 +01:00
|
|
|
run: docker network rm main_subnet
|