From 42be1295a205dcac12678ca5f73a1035035b614f Mon Sep 17 00:00:00 2001 From: Guillaume Deconinck <113656593+GuillaumeDecMeetsMore@users.noreply.github.com> Date: Fri, 12 Jul 2024 23:14:30 +0900 Subject: [PATCH] [NO-ISSUE] ci: adapt JS client lib's CI (#9) * refactor: adapt/update js client * chore: update justfile * ci: adapt JS client lib's CI * ci: fix actions/setup-node usage for pnpm * ci: update actions + install pnpm * ci: remove cache on actions/setup-node as it's pretty fast --- .github/workflows/js-client-test.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/js-client-test.yml b/.github/workflows/js-client-test.yml index b8848c51..51b0fb47 100644 --- a/.github/workflows/js-client-test.yml +++ b/.github/workflows/js-client-test.yml @@ -12,8 +12,8 @@ jobs: strategy: matrix: - os: [ubuntu-20.04, ubuntu-18.04] - node-version: [10, 12, 14] + os: [ubuntu-22.04] + node-version: [20] services: postgres: @@ -28,15 +28,16 @@ jobs: DATABASE_URL: postgresql://postgres:postgres@localhost/nettuscheduler steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 9 - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: "npm" - cache-dependency-path: scheduler/clients/javascript/package-lock.json - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -68,7 +69,6 @@ jobs: - name: Run JavaScript client tests run: | cd scheduler/clients/javascript - npm i -g typescript - npm i + pnpm i - npm run test + pnpm run test