Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add GitHub Workflow #132

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions .codeclimate.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14']
steps:
- uses: actions/checkout@v4
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- name: Run Tests
run: |
npm test
npm run test:app
npm run test:selenium
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.21.3
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ In case your editor does not respect `.editorconfig`, here is a summary of rules
- syntax - ES6/ES2015
- variable declarations - use `const` and `let`

Please look through existing code to get a general sense of the coding style and practice. Keep your changes consitent with original.
Please look through existing code to get a general sense of the coding style and practice. Keep your changes consistent with original.

Thank You for deciding to help the community!
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"prepublishOnly": "rm -rf ./lib && npm run build",
"build": "babel ./src --out-dir ./lib",
"build:dev": "rm -rf ./lib && babel ./src --out-dir ./lib -s",
"test": "eslint -c .eslintrc.json src test && npm run test:unit && npm run test:integration",
"lint": "eslint -c .eslintrc.json src test",
"test": "npm run lint && npm run test:unit && npm run test:integration",
"test:unit": "nyc mocha --require @babel/register --recursive ./test/unit",
"test:app": "wdio test/integration/docker-app/wdio.conf.js",
"test:selenium": "wdio test/integration/docker-selenium/wdio.conf.js",
Expand Down
Loading