From e3d22612a34737925d439f92ecf349e42b186a74 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Mon, 17 Jun 2024 13:55:07 +0530 Subject: [PATCH 1/3] chore: added github action workflow for running the tests --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ package.json | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..59caf79 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Run Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test diff --git a/package.json b/package.json index 88658c5..c2adef2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nodeflip/nest-env-config", - "version": "1.0.1", + "version": "1.0.2", "description": "An environment configuration module for NestJS that allows for easy configuration using decorators.", "main": "dist/index.js", "scripts": { From 6dae624b6b19e20d0dd4973d154ca064703817f6 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Mon, 17 Jun 2024 14:22:00 +0530 Subject: [PATCH 2/3] chore: added test-passing-badge and removed push from github workflow to run test --- .github/workflows/test.yml | 22 +++++++++++----------- README.md | 2 ++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59caf79..844480d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,22 +1,22 @@ name: Run Tests -on: [push, pull_request] +on: [pull_request] jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v2 - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '16' + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "16" - - name: Install dependencies - run: npm install + - name: Install dependencies + run: npm install - - name: Run tests - run: npm test + - name: Run tests + run: npm test diff --git a/README.md b/README.md index 7db1891..44d3375 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![example workflow](https://github.com/nodeflip/nest-env-config/.github/workflows/test.yml/badge.svg) + # 🚀 Nest Environment Configuration Module ## Overview From 4cbdd84e28038108c61643b947a97e86ee5841a2 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Mon, 17 Jun 2024 14:23:27 +0530 Subject: [PATCH 3/3] chore: fixed readme.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 44d3375..f82ac45 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![example workflow](https://github.com/nodeflip/nest-env-config/.github/workflows/test.yml/badge.svg) +![example workflow](https://github.com/nodeflip/nest-env-config/actions/workflows/test.yml/badge.svg) # 🚀 Nest Environment Configuration Module