diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9d117337..b34d3a1d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,13 +17,16 @@ jobs: uses: actions/setup-node@v3 with: node-version: 20.x + - name: Setup Chrome + - id: setup-chrome - uses: browser-actions/setup-chrome@latest with: chrome-version: latest install-chromedriver: true - - run: | - echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV - - run: echo "CHROMEDRIVER_PATH=$(which chromedriver)" >> $GITHUB_ENV + - name: Set Chrome and ChromeDriver paths + run: | + echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV + echo "CHROMEDRIVER_PATH=${{ steps.setup-chrome.outputs.chromedriver-path }}" >> $GITHUB_ENV - run: npm ci - run: npx grunt - run: npm test