From 625a22de1570acd47c79f3cc6aa7846c30bad6b1 Mon Sep 17 00:00:00 2001 From: CastellanosSamuel Date: Wed, 6 Apr 2022 11:38:15 -0700 Subject: [PATCH 1/5] my first github action --- .github/workflows/unit_tests.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 32d8c11..78133f6 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1 +1,20 @@ -name: Unit Tests \ No newline at end of file +name: Unit Tests +on: pull_request +jobs: + tests: + runs-on: ubuntu-latest + steps: + # Checkout the Repo + - uses: actions/checkout@v2 + + # Install Node 12 + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: 12 + + # Install dependencies + - run: npm install + + # Run tests + - run: npm test \ No newline at end of file From cc983add760e9de04c3572a646083690e7468200 Mon Sep 17 00:00:00 2001 From: CastellanosSamuel Date: Wed, 6 Apr 2022 11:44:23 -0700 Subject: [PATCH 2/5] bug fix --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6b1d2cc295f5d92922bcc6cbffb1ce6c118221ab Mon Sep 17 00:00:00 2001 From: CastellanosSamuel Date: Wed, 6 Apr 2022 11:49:09 -0700 Subject: [PATCH 3/5] 2nd test --- .github/workflows/unit_tests.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 78133f6..c28231f 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -17,4 +17,17 @@ jobs: - run: npm install # Run tests - - run: npm test \ No newline at end of file + - run: npm test + +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+.*' \ No newline at end of file From 8f38cd4d6be3d37c58c7f724e451add2e566d041 Mon Sep 17 00:00:00 2001 From: CastellanosSamuel Date: Wed, 6 Apr 2022 11:51:25 -0700 Subject: [PATCH 4/5] 2nd test --- .github/workflows/unit_test2.yml | 12 ++++++++++++ .github/workflows/unit_tests.yml | 15 +-------------- 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/unit_test2.yml diff --git a/.github/workflows/unit_test2.yml b/.github/workflows/unit_test2.yml new file mode 100644 index 0000000..c445d4d --- /dev/null +++ b/.github/workflows/unit_test2.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+.*' \ No newline at end of file diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index c28231f..78133f6 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -17,17 +17,4 @@ jobs: - run: npm install # Run tests - - run: npm test - -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+.*' \ No newline at end of file + - run: npm test \ No newline at end of file From ff71b4cb9c79d2689652dd186b4026a095a01c0c Mon Sep 17 00:00:00 2001 From: CastellanosSamuel Date: Wed, 6 Apr 2022 12:00:46 -0700 Subject: [PATCH 5/5] 2nd test --- .github/workflows/test_validator.yml | 18 ++++++++++++++++++ .github/workflows/unit_test2.yml | 12 ------------ .github/workflows/unit_tests.yml | 15 ++++++++++++++- 3 files changed, 32 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/test_validator.yml delete mode 100644 .github/workflows/unit_test2.yml 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_test2.yml b/.github/workflows/unit_test2.yml deleted file mode 100644 index c445d4d..0000000 --- a/.github/workflows/unit_test2.yml +++ /dev/null @@ -1,12 +0,0 @@ -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+.*' \ No newline at end of file diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 78133f6..c28231f 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -17,4 +17,17 @@ jobs: - run: npm install # Run tests - - run: npm test \ No newline at end of file + - run: npm test + +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+.*' \ No newline at end of file