Skip to content

Commit e2805b2

Browse files
authored
Add first draft of acceptance test workflow. #261
1 parent 6fda200 commit e2805b2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: FDW Acceptance Tests
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
run:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Set up Go
11+
uses: actions/setup-go@v3
12+
with:
13+
go-version: 1.19
14+
15+
- name: Checkout Steampipe
16+
uses: actions/checkout@v3
17+
with:
18+
repository: turbot/steampipe
19+
path: steampipe
20+
21+
- name: Build Steampipe
22+
run: |
23+
echo "PATH=$PATH:$HOME/build:/home/runner" >> $GITHUB_ENV
24+
ls /home/runner/work/
25+
cd /home/runner/work/steampipe
26+
go get
27+
go build -o /home/runner/steampipe
28+
steampipe -v
29+
30+
- name: Setup BATS
31+
uses: mig4/setup-bats@v1
32+
with:
33+
bats-version: 1.2.1
34+
35+
- name: Run a query
36+
run: |
37+
steampipe query "select 1 as col"
38+
pwd
39+
ls -al

0 commit comments

Comments
 (0)