Merge pull request #202 from tstromberg/ci

Add Github CI job
This commit is contained in:
Thomas Strömberg 2023-02-24 12:19:08 -05:00 committed by GitHub
commit c04901d50a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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