Skip to content

remove redundant calls to getFlatSchema to improve performance #4

remove redundant calls to getFlatSchema to improve performance

remove redundant calls to getFlatSchema to improve performance #4

Workflow file for this run

name: Tests
on:
push:
branches-ignore:
- main
pull_request:
branches:
- main
workflow_call:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get go version from go.mod
run: |
echo "GO_VERSION=$(grep '^go ' go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: |
echo "CWD=$(pwd)" >> $GITHUB_ENV
go install github.com/golang/mock/[email protected]
git clone https://github.com/aerospike/schemas.git
- name: Generate Mocks
run: |
make mocks
- name: Test with go
env:
TEST_SCHEMA_DIR: ${{ env.CWD }}/schemas/json/aerospike
run: |
make coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
files: coverage.cov
verbose: false