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

Commit 550a6db

Browse files
committed
Add build workflow, deprecate travis
1 parent 100902e commit 550a6db

File tree

3 files changed

+44
-13
lines changed

3 files changed

+44
-13
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**.md'
7+
pull_request:
8+
paths-ignore:
9+
- '**.md'
10+
11+
jobs:
12+
test:
13+
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest]
19+
go: [ '1.14', '1.15' ]
20+
21+
steps:
22+
23+
# step 1: set up go
24+
- name: Set up GO
25+
uses: actions/setup-go@v1
26+
with:
27+
go-version: ${{ matrix.go }}
28+
29+
# step 2: checkout repository code
30+
- name: Checkout code into workspace directory
31+
uses: actions/checkout@v2
32+
33+
# step 3: install dependencies
34+
- name: Install all Go dependencies
35+
run: |
36+
go get github.com/mnovozhylov/oauth &&
37+
go get github.com/stretchr/testify/assert &&
38+
go get github.com/upwork/golang-upwork/api
39+
40+
# step 4: run test
41+
- name: go test
42+
run: |
43+
go test -v ./...

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GO bindings for Upwork API (OAuth1)
33

44
[![License](https://img.shields.io/github/license/upwork/golang-upwork)](http://www.apache.org/licenses/LICENSE-2.0.html)
55
[![GitHub release](https://img.shields.io/github/release/upwork/golang-upwork.svg)](https://github.com/upwork/golang-upwork/releases)
6-
[![Build status](https://travis-ci.org/upwork/golang-upwork.svg)](http://travis-ci.org/upwork/golang-upwork)
6+
[![Build status](https://github.com/upwork/golang-upwork/workflows/build/badge.svg)](https://github.com/upwork/golang-upwork-oauth2/actions)
77

88
# Introduction
99
This project provides a set of resources of Upwork API from http://developers.upwork.com

0 commit comments

Comments
 (0)