Add Github CI job

This commit is contained in:
Thomas Stromberg 2023-02-24 12:18:29 -05:00
parent 995c1e1104
commit 804a345da7
Failed to extract signature
2 changed files with 54 additions and 0 deletions

26
.github/mergify.yml vendored Normal file
View File

@ -0,0 +1,26 @@
queue_rules:
- name: default
conditions:
# Conditions to get out of the queue (= merged)
- check-success=DCO
- check-success=build
pull_request_rules:
- name: Automatic merge on approval
conditions:
- base=main
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "#review-requested=0"
- check-success=DCO
- check-success=build
- label!=do-not-merge
- label=ready-to-merge
actions:
queue:
method: merge
name: default
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}

28
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: osquery
run: |
curl -LO https://pkg.osquery.io/deb/osquery_5.7.0-1.linux_amd64.deb
sudo dpkg -i osquery_5.7.0-1.linux_amd64.deb
- name: Verify
run: make verify