Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit cfdf92d

Browse files
committed
Transition CI from Azure Pipelines to GitHub Actions
Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
1 parent 7af45ce commit cfdf92d

File tree

3 files changed

+52
-64
lines changed

3 files changed

+52
-64
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
name: Verify Build
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
env:
14+
GOPATH: /opt/go
15+
PATH: /opt/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
16+
GO_VER: 1.14.4
17+
18+
jobs:
19+
unit-tests:
20+
name: Unit Tests
21+
runs-on: ubuntu-18.04
22+
timeout-minutes: 60
23+
steps:
24+
- name: Install Go
25+
uses: actions/setup-go@v3
26+
with:
27+
go-version: ${{ env.GO_VER }}
28+
- name: Install gobin
29+
run: GO111MODULE=off go get -u github.com/myitcv/gobin
30+
- name: Checkout Fabric Code
31+
uses: actions/checkout@v3
32+
- name: Run tests
33+
run: make unit-test
34+
- name: Upload coverage to Codecov
35+
run: bash <(curl https://codecov.io/bash) -t ${{ secrets.CODECOV_UPLOAD_TOKEN }}
36+
env:
37+
CODECOV_UPLOAD_TOKEN: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
38+
integration-tests:
39+
name: Integration Tests
40+
runs-on: ubuntu-18.04
41+
timeout-minutes: 60
42+
steps:
43+
- name: Install Go
44+
uses: actions/setup-go@v3
45+
with:
46+
go-version: ${{ env.GO_VER }}
47+
- name: Install gobin
48+
run: GO111MODULE=off go get -u github.com/myitcv/gobin
49+
- name: Checkout Fabric Code
50+
uses: actions/checkout@v3
51+
- name: Run tests
52+
run: make integration-test

ci/azure-pipelines.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

ci/install_deps.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)