Skip to content

Commit b3244be

Browse files
fix(ci): migration from Travis CI to github actions
1 parent e82681d commit b3244be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+10771
-2815
lines changed

.dependabot/.config.yml

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

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"plugin:json/recommended"
1717
],
1818
"rules": {
19-
"@typescript-eslint/no-explicit-any": 0
19+
"@typescript-eslint/no-explicit-any": 0,
20+
"@typescript-eslint/explicit-module-boundary-types": 0
2021
}
21-
}
22+
}

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
name: Test @ NodeJS ${{ matrix.node-version }} - x86 - ubuntu-latest
7+
# Support [skip ci] out of box with github actions Workaround
8+
# Only works for push https://github.com/actions/runner/issues/774
9+
if: github.event_name == 'pull_request' || (github.event_name == 'push' && contains(toJson(github.event.commits), '[skip ci]') == false)
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup NodeJS LTS
15+
uses: actions/setup-node@v2
16+
- name: Build & Validation
17+
run: |
18+
npm prune && npm i
19+
npm run build
20+
npm run lint
21+
npm run test
22+
release:
23+
name: Release @ NodeJS LTS - x86 - ubuntu-latest
24+
runs-on: ubuntu-latest
25+
needs:
26+
- test
27+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0
33+
persist-credentials: false
34+
- name: Setup NodeJS LTS
35+
uses: actions/setup-node@v2
36+
- name: Install dependencies
37+
run: |
38+
npm prune && npm i
39+
- name: Release
40+
env:
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
43+
# TODO move npm run documentation to semantic-release
44+
run: |
45+
npm run build
46+
npm run documentation
47+
npx semantic-release

.travis.yml

Lines changed: 0 additions & 28 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 @@
33
[![npm version](https://img.shields.io/npm/v/@hexonet/ispapi-apiconnector.svg?style=flat)](https://www.npmjs.com/package/@hexonet/ispapi-apiconnector)
44
[![node](https://img.shields.io/node/v/@hexonet/ispapi-apiconnector.svg)](https://www.npmjs.com/package/@hexonet/ispapi-apiconnector)
55
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
6-
[![build](https://travis-ci.com/hexonet/node-sdk.svg?branch=master)](https://travis-ci.com/hexonet/node-sdk)
6+
[![Build Status](https://github.com/hexonet/node-sdk/workflows/Release/badge.svg?branch=master)](https://github.com/hexonet/node-sdk/workflows/Release/badge.svg?branch=master)
77
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
88
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/hexonet/node-sdk/blob/master/CONTRIBUTING.md)
99

dist/package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@hexonet/ispapi-apiconnector",
33
"description": "Node.js SDK for the insanely fast HEXONET API",
4-
"version": "7.0.2",
4+
"version": "7.0.3",
55
"private": false,
66
"author": {
77
"name": "Kai Schwarz",
@@ -57,37 +57,37 @@
5757
"test": "cross-env NODE_ENV=development nyc ./node_modules/.bin/_mocha -r ts-node/register test/*.spec.ts"
5858
},
5959
"dependencies": {
60-
"node-fetch": "^2.6.0"
60+
"node-fetch": "^2.6.1"
6161
},
6262
"devDependencies": {
63-
"@semantic-release/changelog": "^5.0.0",
63+
"@semantic-release/changelog": "^5.0.1",
6464
"@semantic-release/git": "^9.0.0",
65-
"@semantic-release/npm": "^7.0.3",
66-
"@types/chai": "^4.2.11",
67-
"@types/chai-as-promised": "^7.1.2",
68-
"@types/mocha": "^7.0.2",
69-
"@types/node-fetch": "^2.5.6",
70-
"@typescript-eslint/eslint-plugin": "^2.28.0",
71-
"@typescript-eslint/parser": "^2.28.0",
65+
"@semantic-release/npm": "^7.0.10",
66+
"@types/chai": "^4.2.14",
67+
"@types/chai-as-promised": "^7.1.3",
68+
"@types/mocha": "^8.0.0",
69+
"@types/node-fetch": "^2.5.8",
70+
"@typescript-eslint/eslint-plugin": "^4.0.0",
71+
"@typescript-eslint/parser": "^4.0.1",
7272
"chai": "^4.2.0",
7373
"chai-as-promised": "^7.1.1",
74-
"cross-env": "^7.0.0",
74+
"cross-env": "^7.0.3",
7575
"docco": "^0.8.0",
76-
"eslint": "^6.8.0",
77-
"eslint-plugin-import": "^2.18.2",
78-
"eslint-plugin-json": "^2.1.1",
76+
"eslint": "^7.18.0",
77+
"eslint-plugin-import": "^2.22.1",
78+
"eslint-plugin-json": "^2.1.2",
7979
"eslint-plugin-markdown": "^1.0.0",
80-
"eslint-plugin-node": "^11.0.0",
80+
"eslint-plugin-node": "^11.1.0",
8181
"eslint-plugin-promise": "^4.2.1",
82-
"jsdoc": "^3.6.3",
82+
"jsdoc": "^3.6.6",
8383
"jsdoc-oblivion": "^0.0.9",
84-
"mocha": "^7.1.1",
85-
"nock": "^12.0.0",
86-
"nyc": "^15.0.0",
87-
"semantic-release": "^17.0.4",
88-
"supertest": "^4.0.2",
89-
"ts-node": "^8.8.2",
90-
"typedoc": "^0.17.0",
91-
"typescript": "^3.5.3"
84+
"mocha": "^8.2.1",
85+
"nock": "^13.0.6",
86+
"nyc": "^15.1.0",
87+
"semantic-release": "^17.3.6",
88+
"supertest": "^6.0.0",
89+
"ts-node": "^9.0.0",
90+
"typedoc": "^0.20.7",
91+
"typescript": "^4.0.2"
9292
}
9393
}

dist/src/apiclient.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/apiclient.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/column.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/customlogger.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)