chore: Verify PRs and push to main

Add two action workflows to verify commits and PRs with unit and
integration tests using Github Actions.

Closes: #6

Signed-off-by: Michael Gasch <mgasch@vmware.com>
This commit is contained in:
Michael Gasch 2021-04-21 10:52:55 +02:00
parent 37a83536a2
commit 0bd41929b2
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
name: Integration Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
integration-tests:
name: Run Integration Tests
strategy:
matrix:
platform: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.platform }}
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run Tests
shell: pwsh
run: ./build.ps1 -TestsType integration -ExitProcess

View File

@ -0,0 +1,31 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
name: Unit Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
unit-tests:
name: Run Unit Tests
strategy:
matrix:
platform: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.platform }}
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run Tests
shell: pwsh
run: ./build.ps1 -TestsType unit -ExitProcess