-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition CI from Azure Pipelines to GitHub Actions
Signed-off-by: Tatsuya Sato <[email protected]>
- Loading branch information
Showing
3 changed files
with
53 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Verify Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
GOPATH: /opt/go | ||
PATH: /opt/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin | ||
GO_VER: 1.14.4 | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-18.04 | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VER }} | ||
- name: Install gobin | ||
run: GO111MODULE=off go get -u github.com/myitcv/gobin | ||
- name: Checkout Fabric Code | ||
uses: actions/checkout@v3 | ||
- name: Run tests | ||
run: make unit-test | ||
- name: Upload coverage to Codecov | ||
run: bash <(curl https://codecov.io/bash) -t ${{ secrets.CODECOV_UPLOAD_TOKEN }} | ||
env: | ||
CODECOV_UPLOAD_TOKEN: ${{ secrets.CODECOV_UPLOAD_TOKEN }} | ||
integration-tests: | ||
name: Integration Tests | ||
runs-on: ubuntu-18.04 | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VER }} | ||
gopath: | ||
- name: Install gobin | ||
run: GO111MODULE=off go get -u github.com/myitcv/gobin | ||
- name: Checkout Fabric Code | ||
uses: actions/checkout@v3 | ||
- name: Run tests | ||
run: make integration-test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.