Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gr812b committed Mar 19, 2024
1 parent fcf3b4c commit 40a6568
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 24 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/ci.yaml

This file was deleted.

8 changes: 2 additions & 6 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: cd ./API && mvn -B package --file pom.xml

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- name: Build with Maven
run: cd ./API && mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn package --file pom.xml
35 changes: 35 additions & 0 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on: [push]
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
name: "Build with Node.js"

strategy:
matrix:
node-version: [14.x, 16.x, 18.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'

- run: cd ./front-end
- run: npm ci
- run: npm run build --if-present
- run: npm test

0 comments on commit 40a6568

Please sign in to comment.