Skip to content

Commit

Permalink
Transition CI from Azure Pipelines to GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Tatsuya Sato <[email protected]>
  • Loading branch information
satota2 committed Oct 3, 2023
1 parent 7af45ce commit 16ad75a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 64 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
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
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.

0 comments on commit 16ad75a

Please sign in to comment.