Skip to content

Commit ed182a6

Browse files
yairm210Yair Morgenstern
andauthored
Separate build and e2e test, since the tests can only run on push and not on PR (#138)
* Separate build and e2e test, since the tests can only run on push and not on PR * . --------- Co-authored-by: Yair Morgenstern <[email protected]>
1 parent 7a203f9 commit ed182a6

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Build"
2+
on: [pull_request, push, workflow_dispatch]
3+
4+
jobs:
5+
build: # make sure build/ci work properly
6+
name: Build on ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macos-latest]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- run: |
14+
npm install
15+
npm run all

.github/workflows/ci.yml renamed to .github/workflows/e2e_test.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
name: "CI"
2-
on: [pull_request, push, workflow_dispatch]
1+
name: "E2E test"
2+
on: [push, workflow_dispatch]
33

4-
jobs:
5-
build: # make sure build/ci work properly
6-
name: CI on ${{ matrix.os }}
7-
runs-on: ${{ matrix.os }}
8-
strategy:
9-
matrix:
10-
os: [ubuntu-latest, windows-latest, macos-latest]
11-
steps:
12-
- uses: actions/checkout@v4
13-
- run: |
14-
npm install
15-
npm run all
4+
# End to end tests require content permissions to create releases
5+
# This essentially gives permissions to make ANY change in the repository, so we should not grant this to PRs
6+
# This is an open issue for Github, see https://github.com/orgs/community/discussions/68252
167

8+
jobs:
179
test: # make sure the action works on a clean machine without building
1810
name: E2E test
1911
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)