Commits

Art Lowel authored 6e7fe85b474
use the chromedriver npm package to download the webdriver version compatible with the installed chrome version
No tags

.github/workflows/build.yml

Modified
46 46 run: echo "::set-output name=dir::$(yarn cache dir)"
47 47 - name: Cache Yarn dependencies
48 48 uses: actions/cache@v2
49 49 with:
50 50 # Cache entire Yarn cache directory (see previous step)
51 51 path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
52 52 # Cache key is hash of yarn.lock. Therefore changes to yarn.lock will invalidate cache
53 53 key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
54 54 restore-keys: ${{ runner.os }}-yarn-
55 55
56 + - name: Install the latest chromedriver compatible with the installed chrome version
57 + run: yarn global add chromedriver --detect_chromedriver_version
58 +
56 59 - name: Install Yarn dependencies
57 60 run: yarn install --frozen-lockfile
58 61
59 62 - name: Run lint
60 63 run: yarn run lint
61 64
62 65 - name: Run build
63 66 run: yarn run build:prod
64 67
65 68 - name: Run specs (unit tests)
87 90 with:
88 91 # We use the 'sites' endpoint to also ensure the database is ready
89 92 url: 'http://localhost:8080/server/api/core/sites'
90 93 responseCode: 200
91 94 timeout: 30000
92 95
93 96 - name: Get DSpace REST Backend info/properties
94 97 run: curl http://localhost:8080/server/api
95 98
96 99 - name: Run e2e tests (integration tests)
97 - run: yarn run e2e:ci
100 + run: |
101 + chromedriver --url-base='/wd/hub' --port=4444 &
102 + yarn run e2e:ci
98 103
99 104 - name: Shutdown Docker containers
100 105 run: docker-compose -f ./docker/docker-compose-ci.yml down

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut