diff --git a/.github/workflows/title_validator.yml b/.github/workflows/title_validator.yml new file mode 100644 index 0000000..781b28b --- /dev/null +++ b/.github/workflows/title_validator.yml @@ -0,0 +1,12 @@ +name: Pull Request Title Validator +on: + pull_request: + types: [opened, reopened, synchronize, edited] + +jobs: + require-valid-pr-title: + runs-on: ubuntu-latest + steps: + - uses: pragmatic-tools/pr-title-validator@1.0.0 + with: + pattern: 'JIRA-\d+.*' diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 32d8c11..906a8de 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1 +1,13 @@ -name: Unit Tests \ No newline at end of file +name: Unit Tests +on: push + +jobs: + test: + runs-on: [ ubuntu-latest ] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '14' + - run: npm install + - run: npm test diff --git a/app.js b/app.js index 1631094..8f295a0 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 +module.exports = app;