Skip to content

Commit

Permalink
Merge pull request #2 from nemocazin/badges
Browse files Browse the repository at this point in the history
Badges
  • Loading branch information
nemocazin authored Aug 1, 2024
2 parents aad9baf + 5541cb9 commit 4868f49
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 129 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml

This file was deleted.

86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: CI Pipeline

on:
push:
branches:
- main
- badges
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up dependencies
run: sudo apt-get -y update && sudo apt-get -y install clang-format
- name: Lint source code
run: clang-format -i Code/src/*.c && clang-format -i Code/tests/*.c

build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install -qq build-essential expect sudo ccache
sudo apt-get -y install clang-format make check lcov gcovr
sudo apt install -y glibc-source gcc-arm-none-eabi
sudo apt-get -y update
sudo apt-get -y upgrade
- name: Build main and tests
run: |
mkdir -p Code/build
make main -C Code/
make tests -C Code/
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install -qq build-essential expect sudo ccache
sudo apt-get -y install clang-format make check lcov gcovr
sudo apt install -y glibc-source gcc-arm-none-eabi
sudo apt-get -y update
sudo apt-get -y upgrade
- name: Build tests
run: make tests -C Code/
- name: Run tests
run: |
chmod 777 Code/build/tri_tests
./Code/build/tri_tests
coverage:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install -qq build-essential expect sudo ccache
sudo apt-get -y install clang-format make check lcov gcovr
sudo apt install -y glibc-source gcc-arm-none-eabi
sudo apt-get -y update
sudo apt-get -y upgrade
- name: Build code and generate coverage
run: |
make -C Code/
make coverage -C Code/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/*.info
flags: unittests
name: codecov-umbrella
37 changes: 0 additions & 37 deletions .github/workflows/coverage.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/lint.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# STM32F030F4 Bare metal programming

![Pipeline Status](https://gitlab.univ-lille.fr/nemo.cazin.etu/cazin_cegarra_projet_test_maintenance/badges/main/pipeline.svg)
![Pipeline Status](https://github.com/nemocazin/stm32f030f4-bare-metal-programming/actions/workflows/ci.yml/badge.svg)

![Code Coverage](https://gitlab.univ-lille.fr/nemo.cazin.etu/cazin_cegarra_projet_test_maintenance/badges/main/coverage.svg)
![Code Coverage](https://codecov.io/github/nemocazin/stm32f030f4-bare-metal-programming/graph/badge.svg?token=GVIVAL2Y8H)

## Table of content

Expand Down

0 comments on commit 4868f49

Please sign in to comment.