Skip to content

Commit b3bb5db

Browse files
authored
build action (#13)
add build/test action
1 parent cf76157 commit b3bb5db

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/go.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Go
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v4
21+
with:
22+
go-version: '1.20'
23+
24+
- name: Install DuckDB CLI
25+
run: |
26+
export DUCKDB_CLI_URL=https://github.com/duckdb/duckdb/releases/download/v0.10.3/
27+
curl -sSL -o /tmp/duckdb.zip ${DUCKDB_CLI_URL}/duckdb_cli-linux-amd64.zip
28+
unzip /tmp/duckdb.zip -d /usr/local/bin/
29+
duckdb --version
30+
31+
- name: Build
32+
run: go build -v ./...
33+
34+
- name: Test
35+
run: go test -v ./...

0 commit comments

Comments
 (0)