diff --git a/.github/workflows/test.core.yml b/.github/workflows/test.core.yml index bdc79577..a20dacea 100644 --- a/.github/workflows/test.core.yml +++ b/.github/workflows/test.core.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Test Core Package +name: Core on: push: diff --git a/.github/workflows/test.database-mysql.yml b/.github/workflows/test.database-mysql.yml deleted file mode 100644 index d2090c39..00000000 --- a/.github/workflows/test.database-mysql.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Test database-mysql -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - -jobs: - # Label of the runner job - runner-job: - # You must use a Linux environment when using service containers or container jobs - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [22.x] - - # Service containers to run with `runner-job` - services: - # Label used to access the service container - mysql: - # Docker Hub image - image: mysql - env: - MYSQL_DATABASE: main - MYSQL_ROOT_PASSWORD: password - # Set health checks - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 - ports: - - 3306:3306 - - steps: - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v4 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - # Performs a clean installation of all dependencies in the `package.json` file - # For more information, see https://docs.npmjs.com/cli/ci.html - - name: Install dependencies - working-directory: ./packages/databases/database-mysql - run: npm ci - - - name: Test - run: npm test - working-directory: ./packages/databases/database-mysql - # Environment variables used by the test - env: - # The hostname used to communicate with the mysql service container - MYSQL_DATABASE: main - MYSQL_USER: root - MYSQL_PASSWORD: password - MYSQL_PORT: 3306 - MYSQL_HOST: localhost diff --git a/.github/workflows/test.database-postgres.yml b/.github/workflows/test.database-postgres.yml deleted file mode 100644 index b3c53b2c..00000000 --- a/.github/workflows/test.database-postgres.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Test database-postgres -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - -jobs: - # Label of the runner job - test-postgres: - # You must use a Linux environment when using service containers or container jobs - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [22.x] - - # Service containers to run with `runner-job` - services: - # Label used to access the service container - postgres: - # Docker Hub image - image: postgres - # Provide the password for postgres - env: - POSTGRES_PASSWORD: postgres - # Set health checks to wait until postgres has started - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps tcp port 5432 on service container to the host - - 5432:5432 - - steps: - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v4 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - # Performs a clean installation of all dependencies in the `package.json` file - # For more information, see https://docs.npmjs.com/cli/ci.html - - name: Install dependencies - working-directory: ./packages/databases/database-postgres - run: npm ci - - - name: Test - # Runs a script that creates a PostgreSQL table, populates - # the table with data, and then retrieves the data - run: npm test - working-directory: ./packages/databases/database-postgres - # Environment variables used by the `client.js` script to create - # a new PostgreSQL table. - env: - # The hostname used to communicate with the PostgreSQL service container - POSTGRES_HOST: localhost - POSTGRES_PORT: 5432 - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres \ No newline at end of file diff --git a/.github/workflows/test.database-sql.yml b/.github/workflows/test.database-sql.yml index 3bba698d..9535f0bc 100644 --- a/.github/workflows/test.database-sql.yml +++ b/.github/workflows/test.database-sql.yml @@ -1,4 +1,4 @@ -name: Test Sqlite / Postgres / Mysql +name: SQLite / Postgres / MySQL on: push: branches: [ "main" ] diff --git a/README.md b/README.md index 1128d5e0..9deab157 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ Commerce as Code