diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc5c104a..f53a421a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,6 @@ on: jobs: test: runs-on: ubuntu-latest - container: pyramation/node-sqitch:20.12.0 continue-on-error: true strategy: fail-fast: false @@ -37,10 +36,11 @@ jobs: - geotypes env: - PGHOST: pg_db + PGHOST: localhost PGPORT: 5432 PGUSER: postgres PGPASSWORD: password + PGPM_VERSION: 2.7.9 services: pg_db: @@ -93,8 +93,15 @@ jobs: - name: Install run: pnpm install + - name: Cache pgpm CLI + id: cache-pgpm + uses: actions/cache@v4 + with: + path: ~/.npm + key: pgpm-${{ env.PGPM_VERSION }} + - name: Install pgpm CLI globally - run: npm install -g pgpm + run: npm install -g pgpm@${{ env.PGPM_VERSION }} - name: Build run: pnpm -r build diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 62eabcea..c4e9ac5d 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -9,13 +9,13 @@ on: jobs: integration-test: runs-on: ubuntu-latest - container: pyramation/node-sqitch:20.12.0 env: - PGHOST: pg_db + PGHOST: localhost PGPORT: 5432 PGUSER: postgres PGPASSWORD: password + PGPM_VERSION: 2.7.9 services: pg_db: @@ -68,8 +68,15 @@ jobs: - name: Install run: pnpm install + - name: Cache pgpm CLI + id: cache-pgpm + uses: actions/cache@v4 + with: + path: ~/.npm + key: pgpm-${{ env.PGPM_VERSION }} + - name: Install pgpm CLI globally - run: npm install -g pgpm + run: npm install -g pgpm@${{ env.PGPM_VERSION }} - name: Build run: pnpm -r build