File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3939
4040 # Step to run tests
4141 - name : Run tests
42- run : npm run test:serial
43-
44- # Step to run Docker container with specific environment variable and name
45- - name : Run Docker container
46- run : docker run -e npm_config_ENV=qa --name playContainer playtest
42+ run : npm run test:serial
Original file line number Diff line number Diff line change @@ -16,5 +16,9 @@ COPY . .
1616# Install Chrome browser for use with Playwright
1717RUN npx playwright install chrome
1818
19+ # Instead of passing --ENV="qa" in the command line (CMD parameter),
20+ # we are setting the environment variable here itself
21+ ENV npm_config_ENV=qa
22+
1923# Here, we run the test script defined in package.json (npm run test:serial)
2024CMD ["npm" , "run" , "test:serial" ]
You can’t perform that action at this time.
0 commit comments