Skip to content

TwoRoomsAndABoom CI Pipeline #1

TwoRoomsAndABoom CI Pipeline

TwoRoomsAndABoom CI Pipeline #1

Workflow file for this run

name: CI Pipeline
run-name: TwoRoomsAndABoom CI Pipeline
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
spring-testing:
runs-on: ubuntu-latest
steps:
- name: 🔍 Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📦 Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: 🛠️🧪 Build and Verify with Maven
run: mvn -B verify
react-testing:
runs-on: ubuntu-latest
steps:
- name: 🔍 Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: ⬇️ Install dependencies
working-directory: ./frontend
run: npm ci
# - name: 🧹 Running Linter
# working-directory: ./frontend
# run: npm run lint
- name: 🧪 Running Tests
working-directory: ./frontend
run: npm run test
codebase-linter:
runs-on: ubuntu-latest
steps:
- name: 🔍 Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 🧹 Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_ES: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}