Adjust repository settings (#2119) #2329
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 Driver Tests | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.20', '1.21' ] | |
defaults: | |
run: | |
working-directory: drivers/golang/age/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run apache/age docker image | |
run: docker compose up -d | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Generate | |
run: go generate ./../... | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test . -v |