review changes #103
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: Test | |
on: | |
push: | |
branches-ignore: | |
- main | |
workflow_call: | |
jobs: | |
tests: | |
runs-on: aerospike_large_runners_8 | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
- 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: Write feature keys | |
env: | |
FEATURES_CONF : ${{secrets.FEATURES_CONF}} | |
run: | | |
echo "$FEATURES_CONF" > docker/vanilla/config/features.conf | |
echo "$FEATURES_CONF" > docker/tls/config/features.conf | |
echo "$FEATURES_CONF" > docker/mtls/config/features.conf | |
echo "$FEATURES_CONF" > docker/auth/config/features.conf | |
- name: Login to Aerospike Jfrog | |
run: | | |
docker login aerospike.jfrog.io --username ${{ secrets.JFROG_USERNAME }} --password ${{ secrets.JFROG_ACCESS_TOKEN }} | |
# - name: Clear Docker Cache | |
# run: | | |
# docker system prune --all --force | |
- name: Run tests | |
run: | | |
make coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
files: ./coverage/total.cov | |
verbose: false |