Skip to content

Commit daa789e

Browse files
authored
Merge pull request #16 from upwork/workflows-migration
Add build workflow, deprecate travis
2 parents a9ed08c + aeba30a commit daa789e

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
node: [ '12', '14', '16' ]
20+
21+
name: Node ${{ matrix.node }}
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Setup node
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ matrix.node }}
28+
# step 1: install dependencies
29+
- run: npm install
30+
# step 2: run test
31+
- run: npm test

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Node.JS bindings for Upwork API (OAuth2)
44
[![License](http://img.shields.io/packagist/l/upwork/php-upwork.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
55
[![npm](https://img.shields.io/npm/v/node-upwork-oauth2.svg)](https://www.npmjs.com/package/node-upwork-oauth2)
66
[![GitHub release](https://img.shields.io/github/release/upwork/node-upwork-oauth2.svg)](https://github.com/upwork/node-upwork-oauth2/releases)
7-
[![Build Status](https://travis-ci.org/upwork/node-upwork-oauth2.svg)](https://travis-ci.org/upwork/node-upwork-oauth2)
7+
[![Build Status](https://github.com/upwork/node-upwork-oauth2/workflows/build/badge.svg)](https://github.com/upwork/node-upwork-oauth2/actions)
88

99
# Introduction
1010
This project provides a set of resources of Upwork API from http://developers.upwork.com based on OAuth 2.0.

0 commit comments

Comments
 (0)