diff --git a/.github/mergify.yml b/.github/mergify.yml new file mode 100644 index 0000000..10834a9 --- /dev/null +++ b/.github/mergify.yml @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..71f2f61 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 +