Update dependency countly-sdk-web to v24.11.4 #241
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: E2E | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- README.md | |
- .gitignore | |
- .gitpod.yml | |
- LICENSE | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- README.md | |
- .gitignore | |
- .gitpod.yml | |
- LICENSE | |
jobs: | |
test: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '17' ] | |
name: E2E with Java ${{ matrix.Java }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: maven | |
- name: Build backend | |
run: mvn package | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Start backend | |
run: mvn spring-boot:run & | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Build frontend | |
run: npm install | |
working-directory: ./react-app | |
- name: Run frontend | |
run: npm start & | |
working-directory: ./react-app | |
- name: Wait for services to be available | |
run: | | |
# Wait for Spring Boot | |
while ! nc -z localhost 8080; do sleep 1; done | |
# Wait for React | |
while ! nc -z localhost 3000; do sleep 1; done | |
- name: Install dependencies | |
run: npm ci | |
working-directory: ./e2e | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps chromium | |
working-directory: ./e2e | |
- name: Run Playwright tests | |
run: npx playwright test | |
working-directory: ./e2e |