diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3b9696..7c9bf7e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} + cache: 'npm' - name: Install dependencies run: npm ci @@ -29,3 +30,9 @@ jobs: - name: Run build run: npm run build + + - name: Set up .env for tests + run: cp .env.template .env + + - name: Run Test + run: npm test diff --git a/README.md b/README.md index ed76215..4a41d1c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # 🚀 Express TypeScript Boilerplate 2024 [![Docker Image CI](https://github.com/edwinhern/express-typescript-2024/actions/workflows/docker-image.yml/badge.svg?branch=master)](https://github.com/edwinhern/express-typescript-2024/actions/workflows/docker-image.yml) -[![CodeQL](https://github.com/edwinhern/express-typescript-2024/actions/workflows/codeql.yml/badge.svg)](https://github.com/edwinhern/express-typescript-2024/actions/workflows/codeql.yml) -[![Build Express+Typescript Application](https://github.com/edwinhern/express-typescript-2024/actions/workflows/test.yml/badge.svg)](https://github.com/edwinhern/express-typescript-2024/actions/workflows/test.yml) +[![CodeQL](https://github.com/edwinhern/express-typescript-2024/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/edwinhern/express-typescript-2024/actions/workflows/codeql.yml) +[![Build Express+Typescript Application](https://github.com/edwinhern/express-typescript-2024/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/edwinhern/express-typescript-2024/actions/workflows/build.yml) ## 🌟 Introduction