Add Github CI job
This commit is contained in:
parent
995c1e1104
commit
804a345da7
|
@ -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 }}
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue