Skip to content

Commit

Permalink
Testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nguy8tri committed Sep 16, 2024
1 parent 2f6d65d commit e27dac1
Show file tree
Hide file tree
Showing 13 changed files with 2,792 additions and 36 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,40 @@
name: Build, Test, and Lint
on:
push:
branches: [ "master" ]
branches: [ "refractor" ]
pull_request:
branches: [ "master" ]

jobs:
build-and-test:
build:
runs-on: ubuntu-latest
container: huskysat/found:latest

steps:
- uses: actions/checkout@v3
- run: apt -y upgrade
- run: apt install -y cmake
- run: apt install -y wget
- run: apt install -y tar
- run: apt install -y valgrind
- run: pip install cpplint
- name: Build all (Twice)
run: (make || make) && make clean
run: (make compile || make compile)

test:
runs-on: ubuntu-latest
container: huskysat/found:latest

steps:
- name: Test (Twice)
run: (make test || make test)
- name: Upload coverage report
uses: JamesIves/github-pages-deploy-action@v4
with:
name: Coverage Report
folder: build/documentation/coverage/

lint:
runs-on: ubuntu-latest
container: huskysat/found:latest
steps:
- name: Stylecheck
run: make google_stylecheck
- name: Test Stylecheck
run: make google_stylecheck_test
- name: Line Endings
uses: erclu/check-crlf@v1
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM gcc:latest
RUN apt update
RUN apt -y upgrade
RUN apt install -y cmake
RUN apt install -y wget
RUN apt install -y tar
RUN apt install -y valgrind
RUN apt install -y python3
RUN apt install -y cpplint
RUN apt install -y gcovr
Loading

0 comments on commit e27dac1

Please sign in to comment.