Merge pull request #123 from hwangswan/main #128
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: C/C++ CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout repository | |
- name: Install clang-format | |
run: sudo apt-get install -y clang-format | |
- name: clang-format linter | |
run: make lint | |
- name: junk hunt | |
run: make junk_hunt | |
build-and-test: | |
needs: linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout repository | |
- name: make | |
run: make | |
- name: make - copy test into testing folder | |
run: make init_test | |
- name: make - test_silent | |
# Running silent (without progress check) | |
run: make test_silent | |
- name: cleaning afterworks | |
run: make clean |