Skip to content

Commit e4ce366

Browse files
committed
Refactor workflows
1 parent 2c633a4 commit e4ce366

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

.github/workflows/cli_tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Test CLI
22

33
on:
44
workflow_call:
5-
pull_request:
6-
branches:
7-
- main
85

96
permissions:
107
contents: read

.github/workflows/js_sdk_tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
secrets:
66
E2B_API_KEY:
77
required: true
8-
pull_request:
9-
branches:
10-
- main
118

129
permissions:
1310
contents: read

.github/workflows/pull-request.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Pull Request
2+
3+
permissions:
4+
contents: read
5+
id-token: write
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
on:
12+
pull_request:
13+
branches:
14+
- main
15+
16+
jobs:
17+
js-sdk:
18+
uses: ./.github/workflows/js_sdk_tests.yml
19+
secrets:
20+
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
21+
python-sdk:
22+
uses: ./.github/workflows/python_sdk_tests.yml
23+
secrets:
24+
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
25+
cli:
26+
uses: ./.github/workflows/cli_tests.yml
27+
secrets:
28+
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}

.github/workflows/python_sdk_tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
secrets:
66
E2B_API_KEY:
77
required: true
8-
pull_request:
9-
branches:
10-
- main
118

129
permissions:
1310
contents: read

0 commit comments

Comments
 (0)