-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 933 Bytes
/
test.yaml
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
42
43
name: test
on:
push:
branches: [master]
paths:
- '.github/workflows/test.yaml'
- 'src/**'
- 'test/**'
- 'carbon.h'
pull_request:
branches: [master]
types: [opened, synchronize]
paths:
- '.github/workflows/test.yaml'
- 'src/**'
- 'test/**'
- 'carbon.h'
schedule:
- cron: '0 9 * * 5'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
test:
permissions:
security-events: write
runs-on: ubuntu-latest
steps:
- name: checkout-repo
uses: actions/checkout@v4
- name: setup-codeql
uses: github/codeql-action/init@v3
with:
languages: c-cpp
- name: test
run: |
clang -std=c99 -Wall -Wextra -pipe -Os src/make.c -lm -static -s -o make
./make check
- name: analyze
uses: github/codeql-action/analyze@v3