chore(deps): bump actions/setup-java from 3 to 4 #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 19 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '19' | |
distribution: 'adopt' | |
- 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 |