Skip to content

Commit 550f5ea

Browse files
committed
feat(ci): add libsql-server version as workflow_dispatch input
1 parent 148b4cb commit 550f5ea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,31 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
workflow_dispatch:
9+
inputs:
10+
libsql-server-release:
11+
description: 'LibSQL Server Release'
12+
required: true
13+
default: 'libsql-server-v0.24.32'
814

915
jobs:
1016
test:
1117
strategy:
1218
matrix:
1319
go-version: [ '1.24' ]
1420
os: [ubuntu-latest, macos-latest]
15-
libsql-server-release: [libsql-server-v0.24.32]
1621
runs-on: ${{ matrix.os }}
1722
steps:
1823
- uses: actions/checkout@v3
24+
1925
- name: Set up Go
2026
uses: actions/setup-go@v3
2127
with:
2228
go-version: ${{ matrix.go-version }}
2329

2430
- name: Install sqld
2531
run: |
26-
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/libsql/releases/download/${{ matrix.libsql-server-release }}/libsql-server-installer.sh | sh
32+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/libsql/releases/download/${{ github.event.inputs.libsql-server-release || 'libsql-server-v0.24.32' }}/libsql-server-installer.sh | sh
2733
echo "$HOME/.sqld/bin" >> $GITHUB_PATH
2834
sqld --version
2935

0 commit comments

Comments
 (0)