Skip to content

Commit

Permalink
other: Split node and browser tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
olexandr-mazepa committed Feb 5, 2025
1 parent 7f6f640 commit a00a6df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
- main

jobs:
on-pull-request:
name: test
integration_node:
name: node.js related integration tests
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
Expand All @@ -34,9 +34,23 @@ jobs:
- name: Run build
run: npm run build

- name: Run Node.js integration tests
- name: Run Node.js related integration tests
run: npm run test:integration:node

integration_browser:
name: node.js related integration tests
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Install dependencies
run: npm ci

- name: Copy dist for test server
run: cp ${{github.workspace}}/dist/mailgun.web.js ${{github.workspace}}/integration_tests/browser/server/dist/mailgun.web.js

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"

- name: Install dependencies
run: npm ci
Expand Down

0 comments on commit a00a6df

Please sign in to comment.