Skip to content

build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /tickethub/client/react #661

build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /tickethub/client/react

build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /tickethub/client/react #661

Workflow file for this run

name: CI
on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
# When a new revision is pushed to a PR, cancel all in-progress CI runs for that
# PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
examples:
name: Build Examples
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
pkg:
- opa-react-demo
- nestjs-demo
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22
- name: build and start
run: docker compose up --build -d
working-directory: ${{ matrix.pkg }}
- name: integration tests
run: docker compose run --quiet-pull integration-tests
working-directory: ${{ matrix.pkg }}
if: matrix.pkg == 'nestjs-demo'
- name: dump logs
run: docker compose logs
if: failure()
working-directory: ${{ matrix.pkg }}
- name: build and start
run: docker compose down
working-directory: ${{ matrix.pkg }}
# TicketHub CI:
tickethub-unit-test-policies:
name: TicketHub - Unit Test Policies
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- run: make test-policies
working-directory: tickethub/
tickethub-unit-test-react:
name: TicketHub - Node Packages
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
pkg: [opa-wasm]
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: "21.x"
- uses: open-policy-agent/setup-opa@34a30e8a924d1b03ce2cf7abe97250bbb1f332b5 # v2.2.0
- name: setup and test
run: |
npm ci
npm test
working-directory: tickethub/client/react/packages/${{ matrix.pkg }}
tickethub-build-clients:
name: TicketHub - Build Client
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
client: [html, react]
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: build wasm bundle
run: |
curl -Lo eopa https://github.com/StyraInc/enterprise-opa/releases/download/v1.36.2/eopa_Linux_x86_64
chmod +x ./eopa
make client/react/public/opa.wasm
working-directory: tickethub/
env:
OPA: ./eopa
if: ${{ matrix.client == 'react' }}
- name: setup
run: docker compose --profile ${{ matrix.client }} up --quiet-pull --wait --wait-timeout 300 --build
working-directory: tickethub/
- name: smoke test
run: curl --retry 5 --retry-connrefused --retry-max-time 120 http://127.0.0.1:3000 -v
working-directory: tickethub/
tickethub-test-e2e:
name: TicketHub - Test E2E
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
server: [node, csharp, aspnetcore, java, springboot]
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: setup
run: docker compose --profile ${{ matrix.server }} --profile react up --quiet-pull --wait --wait-timeout 300
working-directory: tickethub/
- name: Install dependencies
run: npm ci
working-directory: tickethub/tests/e2e
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: tickethub/tests/e2e
- name: Run Playwright tests
run: npx playwright test
working-directory: tickethub/tests/e2e
env:
FILTERS: ${{ matrix.server == 'node' || matrix.server == 'csharp' }}
REASONS: ${{ matrix.server == 'node' || matrix.server == 'java' }}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: playwright-report-${{ matrix.server }}
path: tickethub/tests/e2e/playwright-report/
retention-days: 7
- name: Run hurl API tests
run: docker compose run --quiet-pull integration-tests
working-directory: tickethub/
env:
HURL_SKIP_FILTERING: ${{ matrix.server != 'node' && matrix.server != 'csharp' }}
HURL_SKIP_MASKING: ${{ matrix.server != 'node' && matrix.server != 'csharp' }}
- name: dump logs
run: docker compose --profile ${{ matrix.server }} logs
working-directory: tickethub/
if: failure()
- name: Publish Test Report
uses: mikepenz/action-junit-report@3585e9575db828022551b4231f165eb59a0e74e3 # v5.6.2
if: always()
with:
check_name: Results for server-${{ matrix.server }}
report_paths: tickethub/tests/api/report.xml
tickethub-test-e2e-batch:
name: TicketHub - Test E2E Batching
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: setup
run: docker compose --profile node --profile react up --quiet-pull --wait --wait-timeout 300
working-directory: tickethub/
- name: Install dependencies
run: npm ci
working-directory: tickethub/tests/e2e
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: tickethub/tests/e2e
- name: Run Playwright tests
run: npx playwright test
working-directory: tickethub/tests/e2e
env:
BATCHING: true
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: playwright-report-batching-node
path: tickethub/tests/e2e/playwright-report/
retention-days: 7
- name: dump logs
run: docker compose --profile node logs
working-directory: tickethub/