Skip to content

v2.0.0

v2.0.0 #50

Workflow file for this run

name: SDK tests
on:
- push
- workflow_dispatch
jobs:
test:
# Containers must run in Linux based operating systems
## We want to define a strategy for our job
strategy:
## this will contain a matrix of all of the combinations
## we wish to test again:
matrix:
go-version: [ 1.17.x ]
platform: [ ubuntu-latest ]
## Defines the platform for each test run
runs-on: ${{ matrix.platform }}
## the steps that will be run through for each version and platform
## combination
steps:
## sets up go based on the version
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
## checks out our code locally so we can work with the files
- name: Checkout code
uses: actions/checkout@v2
## run go vet
- name: Run linter
run: make vet
## run linter
- name: Run linter
run: make lint
## run tests
- name: Run tests
run: make test
## post run
- name: Send result code coverage
run: |
bash tools/codecov/format_coverage.sh
bash <(curl -s https://codecov.io/bash) || echo "codecov send failed"