Skip to content

Commit

Permalink
Use GitHub actions workflow instead of Travis (#2)
Browse files Browse the repository at this point in the history
Removes travis.yml and separates lint and jest tests
  • Loading branch information
matthewferry authored May 3, 2019
1 parent e00c7eb commit 1e6ce14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 8 additions & 2 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ workflow "Test" {
resolves = ["NPM test"]
}

action "NPM Install" {
action "NPM install" {
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
args = "install"
}

action "NPM lint" {
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
args = "run lint"
needs = ["NPM install"]
}

action "NPM test" {
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
args = "test"
needs = ["NPM Install"]
needs = ["NPM lint"]
}
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"jest": "^20.0.0"
},
"scripts": {
"test": "jest && eslint *.js"
"lint": "eslint *.js",
"test": "jest"
},
"eslintConfig": {
"extends": "eslint-config-postcss/es5",
Expand Down

0 comments on commit 1e6ce14

Please sign in to comment.