From c796685a3981fe221546dcffcbe85bbe2d005dbf Mon Sep 17 00:00:00 2001 From: DanielDexcom Date: Wed, 6 Apr 2022 11:31:46 -0700 Subject: [PATCH 1/4] my first github action --- .github/workflows/unit_tests.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 From c88e8a81aaf28fa6deb207614c495e40d7c8b344 Mon Sep 17 00:00:00 2001 From: DanielDexcom Date: Wed, 6 Apr 2022 11:40:07 -0700 Subject: [PATCH 2/4] Fix code --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; From 35cc2d7d51a8c53dd341e62729b0346ea4c97708 Mon Sep 17 00:00:00 2001 From: DanielDexcom Date: Wed, 6 Apr 2022 11:50:18 -0700 Subject: [PATCH 3/4] New yml --- .github/workflows/title_validator.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/title_validator.yml diff --git a/.github/workflows/title_validator.yml b/.github/workflows/title_validator.yml new file mode 100644 index 0000000..8c0ec53 --- /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+.*' From 78e56fe74149b7675696e7ca5e7ae9e9fca71080 Mon Sep 17 00:00:00 2001 From: DanielDexcom Date: Wed, 6 Apr 2022 11:53:54 -0700 Subject: [PATCH 4/4] Fix PR validator --- .github/workflows/title_validator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/title_validator.yml b/.github/workflows/title_validator.yml index 8c0ec53..781b28b 100644 --- a/.github/workflows/title_validator.yml +++ b/.github/workflows/title_validator.yml @@ -1,4 +1,4 @@ -name: `Pull Request Title Validator` +name: Pull Request Title Validator on: pull_request: types: [opened, reopened, synchronize, edited]