Optmize vertex and edge builder functions #898
Workflow file for this run
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", "PG15" ] | |
pull_request: | |
branches: [ "master", "PG15" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.18', '1.19' ] | |
defaults: | |
run: | |
working-directory: drivers/golang/age/ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set tag based on branch | |
run: | | |
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then | |
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then | |
echo "TAG=latest" >> $GITHUB_ENV | |
elif [[ "$GITHUB_REF" == "refs/heads/PG15" ]]; then | |
echo "TAG=PG15_latest" >> $GITHUB_ENV | |
fi | |
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then | |
if [[ "$GITHUB_BASE_REF" == "master" ]]; then | |
echo "TAG=latest" >> $GITHUB_ENV | |
elif [[ "$GITHUB_BASE_REF" == "PG15" ]]; then | |
echo "TAG=PG15_latest" >> $GITHUB_ENV | |
fi | |
fi | |
- name: Run apache/age docker image | |
run: | | |
export TAG=$TAG | |
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 |