From 99f6e82b17d424d04572f3dbecf06184c52f3eb0 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Mon, 17 Jun 2024 14:24:30 +0530 Subject: [PATCH] chore: added github action workflow for running the tests (#1) * chore: added github action workflow for running the tests * chore: added test-passing-badge and removed push from github workflow to run test * chore: fixed readme.md --------- Co-authored-by: Ashish Kumar --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ README.md | 2 ++ package.json | 2 +- 3 files changed, 25 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..844480d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Run Tests + +on: [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/README.md b/README.md index 7db1891..f82ac45 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![example workflow](https://github.com/nodeflip/nest-env-config/actions/workflows/test.yml/badge.svg) + # 🚀 Nest Environment Configuration Module ## Overview 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": {