From 1d02620a1a0394fa4526b371c51cbf21be7b3bca Mon Sep 17 00:00:00 2001 From: Kai Arseneau Date: Tue, 19 Mar 2024 15:45:31 -0400 Subject: [PATCH] Update lint.yaml --- .github/workflows/lint.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 508d916..1567d0c 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,3 +22,35 @@ jobs: - name: Build with Maven run: cd ./API && mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn package --file pom.xml + + Build_Node.js: + runs-on: ubuntu-latest + name: "Build with Node.js" + + strategy: + matrix: + node-version: [18.x, 20.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: front-end/package-lock.json + + - name: Install dependencies + run: npm ci --force + working-directory: ./front-end + + - name: Build + run: npm run build --if-present + working-directory: ./front-end + + - name: Test + run: npm test + working-directory: ./front-end \ No newline at end of file