Skip to content

Commit

Permalink
Merge pull request #25 from sauliuz/github-actions
Browse files Browse the repository at this point in the history
testing flow via github actions
  • Loading branch information
sauliuz authored May 7, 2021
2 parents 264896e + 99e4c92 commit 9baa413
Show file tree
Hide file tree
Showing 11 changed files with 2,556 additions and 18 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# GitHub workflow to automate amockjs builds

name: amockjs tests

on:
# push or pull request events to the the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# allow you to run this workflow manually on GitHub from the Actions tab
workflow_dispatch:

jobs:
build:
timeout-minutes: 4
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: setup amockjs server
working-directory: source
run: |
npm install
cd tests/mock
nohup node app.js &
echo "done"
- name: run amokjs tests
working-directory: source/tests
run: |
npm install
npx cucumber-js features
20 changes: 2 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,16 @@
# Logs
logs
*.log
nohup.out

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# dependencies
target

# node modules
node_modules

# npm lock
package-lock.json
node_modules
File renamed without changes.
Loading

0 comments on commit 9baa413

Please sign in to comment.