Skip to content

Commit

Permalink
Add UI tests to CI
Browse files Browse the repository at this point in the history
This is an initial test to see if hardware acceleration works in CI
  • Loading branch information
NSeydoux committed Aug 12, 2024
1 parent 9830f04 commit eaabd3c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ jobs:
- uses: actions/setup-node@v4
- run: npm ci

ui-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Build the docker image containing the Android emulator and all the test dependencies.
- run: |
docker build --network=host --tag inrupt-wallet-frontend-ui-tests:test .
# Run the Detox tests in the emulator container.
- run: |
docker run -it \
--env EXPO_PUBLIC_LOGIN_URL="https://datawallet.inrupt.com/oauth2/authorization/wallet-app" \
--env EXPO_PUBLIC_WALLET_API="https://datawallet.inrupt.com" \
# FIXME read these from secrets, this is just for initial testing
--env TEST_ACCOUNT_USERNAME="some-username" \
--env TEST_ACCOUNT_PASSWORD="some-password" \
inrupt-wallet-frontend-ui-tests:test
sonarqube:
name: run sonarqube
if: ${{ github.actor != 'dependabot[bot]' }}
Expand All @@ -41,4 +57,4 @@ jobs:
uses: kitabisa/[email protected]
with:
host: ${{ secrets.SONARQUBE_HOST }}
login: ${{ secrets.SONARQUBE_DEV_INRUPT_COM_GITHUB_TOKEN }}
login: ${{ secrets.SONARQUBE_DEV_INRUPT_COM_GITHUB_TOKEN }}

0 comments on commit eaabd3c

Please sign in to comment.