From 9790d089c89f7e7822e7aff5f39291406cfe5025 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 May 2026 10:27:20 +0000 Subject: [PATCH 1/4] chore: add GitHub CI workflow for lint and test Agent-Logs-Url: https://github.com/Portchain/postgrator/sessions/1328faab-27b0-42b1-8ead-c22ef09afc42 Co-authored-by: acoelhosantos <12519533+acoelhosantos@users.noreply.github.com> --- .github/workflows/ci.yml | 79 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..907e71e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,79 @@ +name: CI + +on: + push: + branches: + - '**' + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + - run: npm ci + - run: npm run lint + + test: + runs-on: ubuntu-latest + permissions: + contents: read + + services: + postgres: + image: postgres:9.6-alpine + env: + POSTGRES_USER: postgrator + POSTGRES_PASSWORD: postgrator + POSTGRES_DB: postgrator + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + mysql: + image: mariadb:10.3 + env: + MYSQL_ROOT_PASSWORD: postgrator + MYSQL_DATABASE: postgrator + MYSQL_USER: postgrator + MYSQL_PASSWORD: postgrator + ports: + - 3306:3306 + options: >- + --health-cmd "mysqladmin ping -h 127.0.0.1 -u root -ppostgrator" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + mssql: + image: mcr.microsoft.com/mssql/server:2019-latest + env: + ACCEPT_EULA: Y + SA_PASSWORD: Postgrator123! + MSSQL_PID: Express + ports: + - 1433:1433 + options: >- + --health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Postgrator123!' -Q 'SELECT 1'" + --health-interval 10s + --health-timeout 5s + --health-retries 10 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + - run: npm ci + - run: npm test From 76af6e815c10292b22bedf4ed368428be334d2e9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 May 2026 12:17:02 +0000 Subject: [PATCH 2/4] chore: trigger CI on pull_request only Agent-Logs-Url: https://github.com/Portchain/postgrator/sessions/c026c91e-3b90-4b42-8e77-017bf8a3d274 Co-authored-by: acoelhosantos <12519533+acoelhosantos@users.noreply.github.com> --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 907e71e..0d47330 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI on: - push: - branches: - - '**' pull_request: jobs: From 9d3dba82275d057819607b4bf32a76e402343265 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 May 2026 12:21:32 +0000 Subject: [PATCH 3/4] chore: use blacksmith runner and latest action versions Agent-Logs-Url: https://github.com/Portchain/postgrator/sessions/5ccd9cdb-7036-4e50-964a-37f188b889fe Co-authored-by: acoelhosantos <12519533+acoelhosantos@users.noreply.github.com> --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d47330..d957837 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,12 +5,12 @@ on: jobs: lint: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 cache: npm @@ -18,7 +18,7 @@ jobs: - run: npm run lint test: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read @@ -67,8 +67,8 @@ jobs: --health-retries 10 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 cache: npm From 6abe323999675b5f4300ec049d06f9b662642062 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 May 2026 13:14:42 +0000 Subject: [PATCH 4/4] chore: remove test job from CI workflow --- .github/workflows/ci.yml | 58 ---------------------------------------- 1 file changed, 58 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d957837..ce0a11a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,61 +16,3 @@ jobs: cache: npm - run: npm ci - run: npm run lint - - test: - runs-on: blacksmith-4vcpu-ubuntu-2404 - permissions: - contents: read - - services: - postgres: - image: postgres:9.6-alpine - env: - POSTGRES_USER: postgrator - POSTGRES_PASSWORD: postgrator - POSTGRES_DB: postgrator - ports: - - 5432:5432 - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - - mysql: - image: mariadb:10.3 - env: - MYSQL_ROOT_PASSWORD: postgrator - MYSQL_DATABASE: postgrator - MYSQL_USER: postgrator - MYSQL_PASSWORD: postgrator - ports: - - 3306:3306 - options: >- - --health-cmd "mysqladmin ping -h 127.0.0.1 -u root -ppostgrator" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - - mssql: - image: mcr.microsoft.com/mssql/server:2019-latest - env: - ACCEPT_EULA: Y - SA_PASSWORD: Postgrator123! - MSSQL_PID: Express - ports: - - 1433:1433 - options: >- - --health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Postgrator123!' -Q 'SELECT 1'" - --health-interval 10s - --health-timeout 5s - --health-retries 10 - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - - run: npm ci - - run: npm test