Merge pull request #177 from nakagami/revert-176-master #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ['1.18', '1.19', '1.20'] | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: | | |
source test_user.env | |
go test -v ./... |