Skip to content

Merge pull request #327 from barnybug/timeout-option #38

Merge pull request #327 from barnybug/timeout-option

Merge pull request #327 from barnybug/timeout-option #38

Workflow file for this run

name: Test
on: push
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: Check out code
uses: actions/checkout@v3
- name: Download Go dependencies
env:
GOPROXY: "https://proxy.golang.org"
run: go mod download
- name: Run unit tests
run: make test-unit
- name: Run test coverage
run: |
# gucumber only works from under GOPATH...
export GOPATH=$(go env GOPATH)
export PATH=$PATH:$GOPATH/bin
export GOSRC=$GOPATH/src/github.com/$GITHUB_REPOSITORY
mkdir -p $GOSRC
cp -r $(pwd)/* $GOSRC
cd $GOSRC
make test-coverage
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GO111MODULE: 'on'