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-26 19:46:29 +01:00
|
|
|
- name: Check if Docker was installed
|
2023-08-27 21:21:30 +01:00
|
|
|
run: docker run --name hello-world hello-world
|
2023-08-27 21:23:58 +01:00
|
|
|
- name: Clean up hello-world container
|
|
|
|
run: docker rm hello-world
|
2023-08-26 20:04:31 +01:00
|
|
|
- name: Clean up network (see #3)
|
|
|
|
run: docker network rm main_subnet
|