Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed May 7, 2024
1 parent 8254630 commit 4eaabe8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ runs:
npm run package
# tests requires the app to already be built
# # only run e2e tests on Mac as it's the only supported platform atm
if [[ '${{ runner.os }}' == 'macOS' ]]; then
# run all tests on macOS including E2E
# E2E tests can't input the administrative password, therefore the tests need to run as root
Expand All @@ -79,9 +81,8 @@ runs:
ETCHER_INCLUDE_VIRTUAL_DRIVES=1 \
TEST_SOURCE_FILE: $(pwd)/${{ env.TEST_SOURCE_FILE }} \
TEST_SOURCE_URL: ${{ env.TEST_SOURCE_URL }} \
npm run wdio
else
# only run unit tests on Linux and Windows as E2E tests are not supported yet
npm run wdio:ci
else
npm run wdio:unit
fi
Expand Down
9 changes: 9 additions & 0 deletions wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ export const config: Options.Testrunner = {
'./tests/e2e/e2e-flash-from-url.spec.ts',
]
],
// CI needs to runs e2e tests and other tests sequencially
'ci': [
[
'./tests/e2e/e2e-flash-from-file.spec.ts',
'./tests/e2e/e2e-flash-from-url.spec.ts',
'./tests/gui/**/*.spec.ts',
'./tests/shared/**/*.spec.ts',
],
]
},
//
// ============
Expand Down

0 comments on commit 4eaabe8

Please sign in to comment.