-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (38 loc) · 1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
# Filter on branch so we don't double-run this workflow on a PR's push.
tags:
- v*
- version*
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`.
actions: none
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: sudo apt-get install -y time
- name: build
run: make all
- name: test
run: make check
- uses: codecov/codecov-action@v4
if: always()
with:
directory: .
fmt-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jidicula/[email protected]
with:
fallback-style: "Google"