diff --git a/.github/workflows/test_validator.yml b/.github/workflows/test_validator.yml new file mode 100644 index 0000000..3ce40ab --- /dev/null +++ b/.github/workflows/test_validator.yml @@ -0,0 +1,18 @@ +name: PR Title Validator +on: + pull_request: + types: + - opened + - edited + - synchronize + - reopened + +jobs: + title-validation: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Validate PR Title + uses: pragmatic-tools/pr-title-validator@1.0.0 + with: + pattern: JIRA-\d+.* \ No newline at end of file diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 32d8c11..e77f58e 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1 +1,12 @@ -name: Unit Tests \ No newline at end of file +name: Unit Tests +on: [push] +jobs: + unit-tests: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + - run: npm install + - run: npm test \ No newline at end of file diff --git a/app.js b/app.js index 1631094..661bac0 100644 --- a/app.js +++ b/app.js @@ -2,7 +2,7 @@ var express = require('express') var app = express() app.get('/', function (req, res) { - res.send('Hello Dexcom!') + res.send('Hello World!') }) module.exports = app; \ No newline at end of file