Skip to content

Update provide-go version #664

Update provide-go version

Update provide-go version #664

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- dev
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout axiom
uses: actions/checkout@v2
with:
path: 'axiom'
- run: echo "LOG_LEVEL=info" >> $GITHUB_ENV
- run: echo "DATABASE_HOST=localhost" >> $GITHUB_ENV
- run: echo "DATABASE_NAME=axiom_dev" >> $GITHUB_ENV
- run: echo "DATABASE_PORT=5432" >> $GITHUB_ENV
- run: echo "DATABASE_USER=axiom" >> $GITHUB_ENV
- run: echo "DATABASE_PASSWORD=axiom" >> $GITHUB_ENV
- run: echo "DATABASE_SUPERUSER=prvd" >> $GITHUB_ENV
- run: echo "DATABASE_SUPERUSER_PASSWORD=prvdp455" >> $GITHUB_ENV
- run: echo "DATABASE_SSL_MODE=disable" >> $GITHUB_ENV
- run: echo "DATABASE_LOGGING=false" >> $GITHUB_ENV
- run: echo "SEAL_UNSEAL_VALIDATION_HASH=0x7cff64a2d2b709dd9df196000be6237875bafe0a92873fd9fd9f35c00808f309" >> $GITHUB_ENV
- run: echo "TAGS=unit" >> $GITHUB_ENV
- run: echo "JWT_SIGNER_PUBLIC_KEY=${{ secrets.DEV_JWT }}" >> $GITHUB_ENV
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: '1.15.1'
- name: Checkout ident
uses: actions/checkout@v2
with:
repository: provideplatform/ident
path: 'ident'
ref: master
token: ${{ secrets.DEPLOY_GITHUB_PAT }}
- run: docker-compose -f ./ops/docker-compose-db.yml up -d
working-directory: axiom
- run: go mod tidy
working-directory: axiom
- run: go mod vendor
working-directory: axiom
- run: go test ./... -v -race -timeout 1800s -tags="$TAGS"
working-directory: axiom
- run: docker-compose -f axiom/ops/docker-compose-db.yml down
- run: docker volume rm ops_prvd-db