Skip to content

Commit

Permalink
ci(helpers): add workflow for helper methods
Browse files Browse the repository at this point in the history
helper unit test badge have also been made
  • Loading branch information
lemredd committed Dec 20, 2022
1 parent d5a227b commit 64e3495
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ This is to avoid complicating conflicts.
<!--
Other workflows will be added
-->
[![Component Helpers Unit Tests](https://github.com/lemredd/calculator/actions/workflows/unit.component-helpers.yml/badge.svg?branch=<branch_name>)](https://github.com/lemredd/calculator/actions/workflows/unit.component-helpers.yml)
[![Component Unit Tests](https://github.com/lemredd/calculator/actions/workflows/unit.components.yml/badge.svg?branch=<branch_name>)](https://github.com/lemredd/calculator/actions/workflows/unit.components.yml)
[![Component Integration Tests](https://github.com/lemredd/calculator/actions/workflows/intg.components.yml/badge.svg?branch=<branch_name>)](https://github.com/lemredd/calculator/actions/workflows/intg.components.yml)
22 changes: 22 additions & 0 deletions .github/workflows/unit.component-helpers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Component Helpers Unit Tests
run-name: Component Helpers Unit Tests
on: [push]
jobs:
sample_unit_test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Testing on Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Cache node modules
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}_${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}_${{ hashFiles('package.json') }}
- run: npm install
- run: npm run test:helpers

0 comments on commit 64e3495

Please sign in to comment.