Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition CI from Azure Pipelines to GitHub Actions #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 }}
- 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
46 changes: 0 additions & 46 deletions ci/azure-pipelines.yml

This file was deleted.

18 changes: 0 additions & 18 deletions ci/install_deps.yml

This file was deleted.