From 207c981c80140721a4cdde054df08a3839e9b833 Mon Sep 17 00:00:00 2001 From: Sujit Kumar <60378235+therealsujitk@users.noreply.github.com> Date: Wed, 1 Nov 2023 03:06:47 +0530 Subject: [PATCH] Support only Node.js 20.x --- .github/workflows/{ci.yaml => unit-tests.yaml} | 14 ++++++-------- README.md | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) rename .github/workflows/{ci.yaml => unit-tests.yaml} (51%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/unit-tests.yaml similarity index 51% rename from .github/workflows/ci.yaml rename to .github/workflows/unit-tests.yaml index 46dfdce..30c54ec 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/unit-tests.yaml @@ -1,20 +1,18 @@ -name: CI +name: Unit Tests -on: [push, pull_request] +on: + pull_request: + types: [opened, reopened, synchronize] jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x] - steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 20.x - run: yarn install --frozen-lockfile - run: yarn test diff --git a/README.md b/README.md index 1286260..4334ee6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # FFCS On The Go -![CI](https://github.com/vatz88/FFCSonTheGo/actions/workflows/ci.yaml/badge.svg) [![Netlify Status](https://img.shields.io/netlify/6d48d2f4-8dc7-4780-ae32-e8da62053826)](https://app.netlify.com/sites/ffcsonthego/deploys) ![Last Update - Vellore](https://img.shields.io/badge/dynamic/json?color=blue&label=vellore&query=$.lastUpdate.vellore&url=https://raw.githubusercontent.com/vatz88/FFCSonTheGo/master/package.json) ![Last Update - Chennai](https://img.shields.io/badge/dynamic/json?color=blue&label=chennai&query=$.lastUpdate.chennai&url=https://raw.githubusercontent.com/vatz88/FFCSonTheGo/master/package.json) [![License](https://img.shields.io/github/license/vatz88/FFCSonTheGo)](/LICENSE.md) +[![Netlify Status](https://img.shields.io/netlify/6d48d2f4-8dc7-4780-ae32-e8da62053826)](https://app.netlify.com/sites/ffcsonthego/deploys) ![Last Update - Vellore](https://img.shields.io/badge/dynamic/json?color=blue&label=vellore&query=$.lastUpdate.vellore&url=https://raw.githubusercontent.com/vatz88/FFCSonTheGo/master/package.json) ![Last Update - Chennai](https://img.shields.io/badge/dynamic/json?color=blue&label=chennai&query=$.lastUpdate.chennai&url=https://raw.githubusercontent.com/vatz88/FFCSonTheGo/master/package.json) [![License](https://img.shields.io/github/license/vatz88/FFCSonTheGo)](/LICENSE.md) This web application is a tool to visualize your timetable for the students of VIT Vellore & Chennai to help with FFCS course registrations. diff --git a/package.json b/package.json index ea4c27f..e67cefd 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "prepare": "husky install" }, "engines": { - "node": ">=18 <21" + "node": "20" }, "browserslist": "> 0.5%, last 2 versions, not dead", "dependencies": {