diff options
author | Martin Schulze <37703201+martin-schulze-vireso@users.noreply.github.com> | 2022-03-04 08:55:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 08:55:06 +0300 |
commit | 9d89318868c6d7f7ef61e14c303d46a63fba00ec (patch) | |
tree | a3c0ab544ffaf010451643e61647e98e2082b9a4 | |
parent | 4bdd58d3fbcdce3209033d44d884e87add1d8405 (diff) | |
parent | a89786dc518523beac68c7f3781886e50229c3f4 (diff) |
Merge pull request #41 from bats-core/martin-schulze-vireso-patch-1
Add Github Action for running tests
-rw-r--r-- | .github/workflows/node.js.yml | 27 | ||||
-rw-r--r-- | .travis.yml | 3 |
2 files changed, 27 insertions, 3 deletions
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..46a1d2e --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,27 @@ +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 965fe2d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: node -cache: npm |