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:
parent
37a83536a2
commit
0bd41929b2
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue