[EdgeDB] Add Product
queries | refactor service/repo layers appropriately
#2730
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
Unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Node Setup & Yarn Install | |
uses: ./.github/actions/setup | |
- name: EdgeDB Setup | |
uses: ./.github/actions/edgedb-setup | |
- name: Tests | |
run: yarn test --reporters=github-actions | |
E2E: | |
name: E2E Tests (${{ matrix.database }} ${{ matrix.shard }}/6) | |
runs-on: ubuntu-latest | |
services: | |
neo4j: | |
image: neo4j:5.10-enterprise | |
ports: | |
- 7687:7687 | |
env: | |
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes | |
NEO4J_PLUGINS: '["apoc"]' | |
NEO4J_dbms_security_auth__enabled: 'false' | |
NEO4J_dbms_security_procedures_unrestricted: apoc.* | |
NEO4J_dbms_connector_bolt_enabled: 'true' | |
NEO4J_dbms_connector_bolt_advertised__address: localhost:7687 | |
options: >- | |
--health-cmd "cypher-shell 'match (n) return count(n)'" | |
--health-timeout 10s | |
--health-retries 20 | |
--health-interval 10s | |
--health-start-period 30s | |
strategy: | |
matrix: | |
shard: [1, 2, 3, 4, 5, 6] | |
database: | |
- neo4j | |
# - edgedb | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Node Setup & Yarn Install | |
uses: ./.github/actions/setup | |
- name: EdgeDB Setup | |
uses: ./.github/actions/edgedb-setup | |
- name: E2E Tests | |
run: yarn test:e2e --shard=${{ matrix.shard }}/6 --reporters=github-actions | |
env: | |
NEO4J_VERSION: ${{ matrix.neo4j-version }} | |
DATABASE: ${{ matrix.database }} | |
continue-on-error: ${{ matrix.database == 'edgedb' }} |