Skip to content

Devfile Go integration tests #351

Devfile Go integration tests

Devfile Go integration tests #351

Workflow file for this run

name: Devfile Go integration tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# every day at 9am EST
- cron: 0 1 * * *
jobs:
build:
name: Run Tests
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
continue-on-error: true
timeout-minutes: 20
steps:
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: 1.15
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Check go mod status
run: |
make gomod_tidy
if [[ ! -z $(git status -s) ]]
then
echo "Go mod state is not clean"
git diff "$GITHUB_SHA"
exit 1
fi
- name: Check format
run: |
make gofmt
if [[ ! -z $(git status -s) ]]
then
echo "not well formatted sources are found : $(git status -s)"
exit 1
fi
- name: Run Go Tests
run: make test
# - name: Upload Test Coverage results
# uses: actions/upload-artifact@v2
# with:
# name: lib-test-coverage-html
# path: tests/v2/lib-test-coverage.html