-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: . |