-
Notifications
You must be signed in to change notification settings - Fork 61
41 lines (34 loc) · 1017 Bytes
/
test_fb3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
go: ['1.20', '1.21', '1.22']
steps:
- uses: actions/checkout@v4
- name: Set up Firebird
run: |
sudo apt install firebird3.0-server -y
sudo cp _attic/firebird.conf /etc/firebird/3.0
sudo systemctl restart firebird3.0
sudo chmod 0664 /etc/firebird/3.0/SYSDBA.password
grep '=' /etc/firebird/3.0/SYSDBA.password |sed 's/^/export /' >test_user.env
export FIREBIRD_LOG=/var/log/firebird/firebird3.0.log >> test_user.env
sudo touch /var/log/firebird/firebird3.0.log
sudo chmod 777 /var/log/firebird/firebird3.0.log
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: |
source test_user.env
go test -v ./...