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": {