From eaabd3c4c8cf8cc0edc77ce51173d020e590a706 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Mon, 12 Aug 2024 10:26:29 +0200 Subject: [PATCH] Add UI tests to CI This is an initial test to see if hardware acceleration works in CI --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df489c3..41b1d38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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]' }} @@ -41,4 +57,4 @@ jobs: uses: kitabisa/sonarqube-action@v1.2.1 with: host: ${{ secrets.SONARQUBE_HOST }} - login: ${{ secrets.SONARQUBE_DEV_INRUPT_COM_GITHUB_TOKEN }} \ No newline at end of file + login: ${{ secrets.SONARQUBE_DEV_INRUPT_COM_GITHUB_TOKEN }}