Skip to content

Commit

Permalink
[NO-ISSUE] ci: adapt JS client lib's CI (#9)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
GuillaumeDecMeetsMore authored Jul 12, 2024
1 parent 6e3c515 commit 42be129
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/js-client-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/
Expand Down Expand Up @@ -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

0 comments on commit 42be129

Please sign in to comment.