File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,26 @@ concurrency:
1717 cancel-in-progress : ${{ github.event_name == 'pull_request' }}
1818
1919jobs :
20+ # Run unit tests before building the application
21+ run-unit-tests :
22+ name : Run unit tests
23+ runs-on : ubuntu-latest
24+ steps :
25+ # Checkout repository code
26+ - name : Checkout code
27+ uses : actions/checkout@v4
28+
29+ # Output placeholder message for unit tests
30+ - name : Hudson's test of unit test
31+ run : echo "Hudson's test of unit test"
32+
33+
2034 # The main job for building the application
2135 build :
2236 name : Build sagemaker-code-editor
2337 runs-on : ubuntu-latest
38+ # Ensure unit tests pass before building
39+ needs : run-unit-tests
2440 timeout-minutes : 180
2541 env :
2642 # Environment variable to optimize the build process
@@ -128,3 +144,16 @@ jobs:
128144 with :
129145 name : npm-package
130146 path : sagemaker-code-editor-${{ env.VERSION }}.tar.gz
147+ # Run end-to-end tests after the build is complete
148+ run-e2e-tests :
149+ name : Run e2e tests
150+ runs-on : ubuntu-latest
151+ needs : build # Ensure e2e tests run after build
152+ steps :
153+ # Checkout repository code
154+ - name : Checkout code
155+ uses : actions/checkout@v4
156+
157+ # Output placeholder message for e2e tests
158+ - name : Hudson's test of e2e test
159+ run : echo "Hudson's test of e2e test"
You can’t perform that action at this time.
0 commit comments