Skip to content

Commit 66d95cb

Browse files
authored
ci: Migrate to GitHub actions. (#27)
* Replace travis with github. * Remove docblocks. * Add debugging. * More debugging. * Use test for all the things.
1 parent f4b7f08 commit 66d95cb

19 files changed

+41
-72
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: milesjohnson

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build
2+
on: push
3+
jobs:
4+
test:
5+
name: Test
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node-version: [8, 10, 12]
10+
fail-fast: true
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
- run: yarn install --ignore-engines --frozen-lockfile
17+
- run: yarn test

.github/workflows/pr.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: PR
2+
on: pull_request
3+
jobs:
4+
conventional:
5+
name: Conventional Title
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v1
9+
- uses: actions/setup-node@v1
10+
- run: yarn install --ignore-engines --frozen-lockfile
11+
- uses: beemojs/conventional-pr-action@v1
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ node_modules/
3030
.flowconfig
3131
.gitbook.yaml
3232
.prettierignore
33-
.travis.yml
3433
babel.config.js
3534
book.json
3635
jest.config.js

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# babel-plugin-typescript-to-proptypes
22

3-
[![Build Status](https://travis-ci.org/milesj/babel-plugin-typescript-to-proptypes.svg?branch=master)](https://travis-ci.org/milesj/babel-plugin-typescript-to-proptypes)
3+
[![Build Status](https://github.com/milesj/babel-plugin-typescript-to-proptypes/workflows/Build/badge.svg)](https://github.com/milesj/babel-plugin-typescript-to-proptypes/actions?query=branch%3Amaster)
44
[![npm version](https://badge.fury.io/js/babel-plugin-typescript-to-proptypes.svg)](https://www.npmjs.com/package/babel-plugin-typescript-to-proptypes)
55
[![npm deps](https://david-dm.org/milesj/babel-plugin-typescript-to-proptypes.svg)](https://www.npmjs.com/package/babel-plugin-typescript-to-proptypes)
66

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@types/babel-types": "^7.0.7",
4848
"@types/prop-types": "^15.7.3",
4949
"@types/react": "^16.9.11",
50+
"conventional-changelog-beemo": "^1.5.1",
5051
"fast-glob": "^3.1.0",
5152
"prop-types": "^15.7.2",
5253
"typescript": "^3.7.2"
@@ -84,7 +85,9 @@
8485
],
8586
"overrides": [
8687
{
87-
"files": ["*.ts"],
88+
"files": [
89+
"*.ts"
90+
],
8891
"rules": {
8992
"@typescript-eslint/no-explicit-any": "off"
9093
}

src/addToClass.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t } from '@babel/core';
72
import convertToPropTypes from './convertBabelToPropTypes';
83
import extractGenericTypeNames from './extractGenericTypeNames';

src/addToFunctionOrVar.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t } from '@babel/core';
72
import convertToPropTypes from './convertBabelToPropTypes';
83
import extractGenericTypeNames from './extractGenericTypeNames';

src/convertBabelToPropTypes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
/* eslint-disable @typescript-eslint/no-use-before-define */
72

83
import { types as t } from '@babel/core';

src/convertTSToPropTypes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
/* eslint-disable */
72

83
import { types as t } from '@babel/core';

src/extractGenericTypeNames.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t } from '@babel/core';
72
import getTypeName from './getTypeName';
83

src/extractTypeProperties.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t } from '@babel/core';
72
import { TypePropertyMap } from './types';
83

src/getTypeName.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t } from '@babel/core';
72

83
export default function getTypeName(typeName: t.TSEntityName): string {

src/propTypes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t } from '@babel/core';
72
import { ConvertState, PropType } from './types';
83

src/typeChecker.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import fs from 'fs';
72
import path from 'path';
83
import glob from 'fast-glob';

src/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t, traverse } from '@babel/core';
72
import ts from 'typescript';
83

src/upsertImport.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @copyright 2018-2019, Miles Johnson
3-
* @license https://opensource.org/licenses/MIT
4-
*/
5-
61
import { types as t } from '@babel/core';
72

83
interface Response {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,6 +2182,11 @@ contains-path@^0.1.0:
21822182
resolved "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a"
21832183
integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=
21842184

2185+
conventional-changelog-beemo@^1.5.1:
2186+
version "1.5.1"
2187+
resolved "https://registry.npmjs.org/conventional-changelog-beemo/-/conventional-changelog-beemo-1.5.1.tgz#dcc1c64b0f8528ebc76e9a2ea03ad29ff55be931"
2188+
integrity sha512-yLuOXVcDjW4FReZsPHBo3y/cCr5ZP+VDPCc0n69X3A/ec41io24pMZp4GoSJd1/cPZXgwhUcl47CwX3GEv6JNQ==
2189+
21852190
convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.7.0:
21862191
version "1.7.0"
21872192
resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"

0 commit comments

Comments
 (0)