Removal of self-hosted CI #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Giraffe CI | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build_executables: | |
name: Build C++ Executables | |
runs-on: ubuntu-latest | |
container: | |
image: joshuajerred/giraffe:latest | |
options: --user root | |
steps: | |
- uses: actions/checkout/@v1 | |
with: | |
submodules: recursive | |
- name: CMake Configure | |
run: mkdir build -p && cd build && cmake .. | |
- name: Build Giraffe Flight System | |
run: cd build && make giraffe_flight_system | |
- name: Build Giraffe Data Link | |
run: cd build && make giraffe_data_link | |
common_tests_cpp: | |
name: Unit Tests / Common C++ | |
runs-on: ubuntu-latest | |
container: | |
image: joshuajerred/giraffe:latest | |
options: --user root | |
steps: | |
- uses: actions/checkout/@v1 | |
with: | |
submodules: recursive | |
- name: CMake Configure | |
run: mkdir build -p && cd build && cmake .. | |
- name: Build Test | |
run: cd build && make unit_test_common | |
- name: Run Test | |
run: cd build/bin/tests/common && ./unit_test_common | |
gfs_tests: | |
name: Unit Tests / Giraffe Flight System | |
runs-on: ubuntu-latest | |
container: | |
image: joshuajerred/giraffe:latest | |
options: --user root | |
steps: | |
- uses: actions/checkout/@v1 | |
with: | |
submodules: recursive | |
- name: CMake Configure | |
run: mkdir build -p && cd build && cmake .. | |
- name: Build Test | |
run: cd build && make unit_test_gfs | |
- name: Run Test | |
run: cd build/bin/tests/flight_system && ./unit_test_gfs | |
data_link_tests: | |
name: Unit Tests / Data Link | |
runs-on: ubuntu-latest | |
container: | |
image: joshuajerred/giraffe:latest | |
options: --user root | |
steps: | |
- uses: actions/checkout/@v1 | |
with: | |
submodules: recursive | |
- name: CMake Configure | |
run: mkdir build -p && cd build && cmake .. | |
- name: Build Test | |
run: cd build && make unit_test_gdl | |
- name: Run Test | |
run: cd build/bin/tests/data_link && ./unit_test_gdl | |
common_tests_js: | |
name: Unit Tests / Common JS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: npm install | |
working-directory: ./src/common/protocol | |
- run: npm test | |
working-directory: ./src/common/protocol | |
ggs_tests: | |
name: Unit Tests / Giraffe Ground Station | |
runs-on: ubuntu-latest | |
needs: ["common_tests_js"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: npm install | |
working-directory: ./src/ground_station | |
- run: npm test | |
working-directory: ./src/ground_station | |
gwc_tests: | |
name: Unit Tests / Giraffe Web Client | |
runs-on: ubuntu-latest | |
needs: ["common_tests_js"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: npm install | |
working-directory: ./src/web_client | |
- run: npm test | |
working-directory: ./src/web_client | |
doxygen: | |
name: Doxygen/Structurizr | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Doxygen | |
run: sudo apt-get install doxygen graphviz -y && mkdir build && mkdir build/dox | |
- name: Generate Structurizr PlantUML SVGs | |
run: bash project/generate_uml.sh | |
- name: Build Doxygen | |
run: doxygen project/doxygen/Doxyfile | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
# - name: Deploy to GitHub Pages | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build/dox/html | |
cmake-lint: | |
name: cmake-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout/@v3 | |
with: | |
submodules: recursive | |
- name: Install cmake-lint | |
run: pip install cmakelint | |
- name: Run cmake-lint | |
run: cmakelint --config=./project/cmakelintrc |