Skip to content

Commit

Permalink
ci: Add a GitHub workflow for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Jul 19, 2023
1 parent 3dd62af commit 4327f8a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
push:
# Filter on branch so we don't double-run this workflow on a PR's push.
tags:
- v*
branches:
- main
pull_request:

permissions:
# "none-all", which doesn't exist, but
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow
# implies that the token still gets created. Elsewhere we learn that any
# permission not mentioned here gets turned to `none`. So this removes all permissions.
actions: none

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- name: install dependencies
run: sudo apt-get install -y flex bison
- name: build
run: ./configure --enable-gcov && make all
- name: test
run: make check
- uses: codecov/codecov-action@3
if: always()
with:
gcov: true
directory: .

0 comments on commit 4327f8a

Please sign in to comment.