Add workflows for CI

This commit is contained in:
Ettore Di Giacinto
2025-03-05 22:18:02 +01:00
parent 2942668d89
commit 127c76d006
3 changed files with 141 additions and 0 deletions

25
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Run Go Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: |
make test
sudo mv coverage/coverage.txt coverage.txt
sudo chmod 777 coverage.txt
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}