Skip to content

Commit

Permalink
added github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vstirbu committed Oct 5, 2020
1 parent 0e4d650 commit ae77baf
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test on Pull Request

on:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2

- name: node
uses: actions/setup-node@v1
with:
node-version: 12

- name: install
run: |
npm install
- name: test
run: |
npm test
30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
push:
tags:
- 'v0.*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2

- name: node
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- name: install
run: |
npm install
- name: publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
npm publish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
package-lock.json
coverage
.settings
.nyc_output
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
.github
test
_config.yml
.editorconfig
.npmignore
.mocharc.json
.prettierrc
.travis.yml
fsm-as-promised.png

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
"scripts": {
"doctoc": "doctoc README.md",
"test": "mocha",
"cov": "nyc mocha",
"test-cov": "istanbul cover _mocha -- -R spec --check-leaks",
"test-travis": "istanbul cover _mocha --report lcovonly -- --reporter dot"
},
"dependencies": {
"es6-promise": "^4.2.1",
"lodash": "^4.17.4",
"stampit": "^4.0.1",
"uuid": "^3.1.0"
"uuid": "^8.3.1"
},
"devDependencies": {
"@types/node": "^8.5.2",
Expand All @@ -42,6 +43,7 @@
"lie": "^3.1.1",
"mocha": "^8.1.3",
"native-promise-only": "^0.8.1",
"nyc": "^15.1.0",
"pinkie": "^2.0.4",
"promise": "^8.0.1",
"q": "^1.5.1",
Expand Down
14 changes: 7 additions & 7 deletions test/intellisense.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/* global global */

var expect = require('chai').expect;
var chai = require('chai');
var chaiAsTyped = require('chai-as-typed');
var ts = require('typescript');
var expect = require("chai").expect;
var chai = require("chai");
var chaiAsTyped = require("chai-as-typed");
var ts = require("typescript");

chai.use(chaiAsTyped);

describe('Intellisense', function () {
it('should not give errors', function () {
describe.skip("Intellisense", function () {
it("should not give errors", function () {
this.timeout(5000);

expect(__dirname + '/intellisense/fsm.js').to.have.types.validated();
expect(__dirname + "/intellisense/fsm.js").to.have.types.validated();
});
});

0 comments on commit ae77baf

Please sign in to comment.