From 4ae9c7a02c838a11e1d3cf92730c482ac699c649 Mon Sep 17 00:00:00 2001 From: Beau Bouchard Date: Wed, 29 Dec 2021 17:22:02 -0500 Subject: [PATCH] chore: created a new workflow for linting/tests using github actions --- .github/PULL_REQUEST_TEMPLATE.md | 11 ++++++++ .github/workflows/push.yml | 44 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/push.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..a9a2f29 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,11 @@ +### Description + + + +### Risk/Impact Analysis + + + +### QA Notes + + \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..81d5f1c --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,44 @@ +name: Node.js CI + +on: [push] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [6.x, 8.x, 10.x, 12.x, 14.x] + steps: + - name: checkout code + uses: actions/checkout@v1 + - name: set up node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: install dependencies + working-directory: . + run: npm install + - name: running lint (pretest) + working-directory: . + run: npm run pretest + + unit_tests: + name: unit tests + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [6.x, 8.x, 10.x, 12.x, 14.x] + steps: + - name: checkout code + uses: actions/checkout@v1 + - name: set up node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: install dependencies + working-directory: . + run: npm install + - name: running npm test + working-directory: . + run: npm run test \ No newline at end of file