Skip to content

Commit

Permalink
try gh action again
Browse files Browse the repository at this point in the history
  • Loading branch information
negue committed Nov 21, 2024
1 parent 16aed7f commit 59427b6
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ jobs:
strategy:
matrix:
node-version: [21.x]
mongodb-version: [7.0]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -137,6 +138,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Start MongoDB ${{ matrix.mongodb-version }} Replica Set
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: rs

- run: sudo apt update
- run: sudo apt -y install libkrb5-dev
- run: cp config.json.example config.json
Expand All @@ -147,18 +154,18 @@ jobs:
CI: true
NODE_ENV: test

- run: npm run mongo:dev -- -d
#- run: npm run mongo:dev -- -d
- run: npm run test:api:unit
env:
REQUIRES_SERVER=true: true

- run: npm run mongo:dev:down
#- run: npm run mongo:dev:down
api-v3-integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]

mongodb-version: [7.0]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -167,6 +174,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB ${{ matrix.mongodb-version }} Replica Set
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: rs

- run: sudo apt update
- run: sudo apt -y install libkrb5-dev
Expand All @@ -178,17 +190,18 @@ jobs:
CI: true
NODE_ENV: test

- run: npm run mongo:dev -- -d
#- run: npm run mongo:dev -- -d
- run: npm run test:api-v3:integration
env:
REQUIRES_SERVER=true: true

- run: npm run mongo:dev:down
#- run: npm run mongo:dev:down
api-v4-integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]
mongodb-version: [7.0]

steps:
- uses: actions/checkout@v4
Expand All @@ -198,6 +211,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB ${{ matrix.mongodb-version }} Replica Set
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: rs

- run: sudo apt update
- run: sudo apt -y install libkrb5-dev
Expand All @@ -208,13 +226,13 @@ jobs:
env:
CI: true
NODE_ENV: test
- run: npm run mongo:dev -- -d
#- run: npm run mongo:dev -- -d
- run: npm run test:api-v4:integration
env:
REQUIRES_SERVER=true: true


- run: npm run mongo:dev:down
#- run: npm run mongo:dev:down
client-unit:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 59427b6

Please sign in to comment.