Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Add github actions, remove patch check (#105)
Browse files Browse the repository at this point in the history
* Add github actions, remove patch check

* Fix of ci.yml
  • Loading branch information
EnoRage authored May 28, 2020
1 parent e49ad61 commit 578135f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 68 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ coverage:
# basic
target: auto # Slowly move up from here...if set to auto commits with newly added tests may bring more files into test scope and therefore actually decrease the coverage and fail the build see https://docs.codecov.io/docs/commit-status

patch: no

54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go

- name: Check out code
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Lint
run: make lint

- name: Build
run: make go-build

- name: Unit Test
run: make test

- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash) -f coverage.txt

- name: Integration Test
run: make integration


deploy:
name: CD
runs-on: ubuntu-latest
needs: [test]
steps:
- name: CD Trigger
if: github.ref == 'refs/heads/master'
uses: Azure/pipelines@releases/v1
with:
azure-devops-project-url: 'https://dev.azure.com/TrustWallet/WatchMarket'
azure-pipeline-name: 'AutomaticCD'
azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
68 changes: 0 additions & 68 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 578135f

Please sign in to comment.