Skip to content

fix: java version in ci #112

fix: java version in ci

fix: java version in ci #112

Workflow file for this run

name: Build & tests
on:
push:
branches:
- master
pull_request:
types: [ opened, reopened, synchronize ]
jobs:
front:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
working-directory: front
run: npm ci
- name: Build
working-directory: front
run: npm run build
- name: Tests
working-directory: front
run: npm test
service:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Test
working-directory: service
run: mvn -B test
- name: Build
working-directory: service
run: mvn --batch-mode -DskipTests package
end-to-end:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
# TODO: add step to launch service
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test