Skip to content

Commit

Permalink
Add build tests (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu authored May 24, 2024
1 parent 9222c36 commit cc01495
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Acceptance Tests
on:
pull_request:

jobs:
build_test:
name: Build test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Checkout
uses: actions/checkout@v4

- name: Fetching Go Cache Paths
id: go-cache-paths
run: |
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
- name: Go Build Cache
id: build-cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
id: mod-cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Test building sqlite extension with chaos plugin
run: |
make build plugin=chaos
- name: Check binary is created
run: |
ls -l steampipe_sqlite_chaos.so

0 comments on commit cc01495

Please sign in to comment.