Skip to content

Commit

Permalink
Improve ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mrognor committed Jan 10, 2025
1 parent 205337a commit 12307bb
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
File renamed without changes.
54 changes: 54 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Simple workflow for run tests on GitHub Actions
name: Run tests

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
# Run project tests
tests:
name: Build and run tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install packages
run: sudo apt-get update && sudo apt-get upgrade && sudo apt-get -y install cmake lcov

- name: Build and run tests
run: ./RunTests

# Upload artifacts to reuse it in next jobs
- uses: actions/upload-artifact@v4
with:
name: TestArtifacts
path: ./Build

telegram:
name: Send report to telegram
needs: tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: BuildArtifacts

- name: Install packages
run: sudo apt-get update && sudo apt-get upgrade && sudo apt-get -y install python3 pipx

- name: Send report to telegram
run: ./.github/TelegramReport/SendCiReportToTelegram.sh ${{ secrets.BOT_ID }} ${{ secrets.CHAT_ID }} ${{ secrets.TOPIC_ID }}

0 comments on commit 12307bb

Please sign in to comment.