github actions for testing
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: C Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y gcc make libcriterion-dev
|
||||
|
||||
- name: Build and run tests
|
||||
run: make test
|
||||
Reference in New Issue
Block a user