diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07155708..bd526429 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,12 +47,12 @@ jobs: - run: yarn build - run: yarn package - run: yarn test - - run: | - node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts - # Cannot find chromedriver when using ncc. - # see https://github.com/nanasess/setup-chromedriver/issues/303 - # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ - # rm -rf node_modules + # - run: | + # node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts + # # Cannot find chromedriver when using ncc. + # # see https://github.com/nanasess/setup-chromedriver/issues/303 + # # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ + # # rm -rf node_modules - if: matrix.chrome_version != 'current' env: CHROME_VERSION: ${{ matrix.chrome_version }} @@ -82,7 +82,7 @@ jobs: export DISPLAY=:99 chromedriver --url-base=/wd/hub & sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # disable headless mode - node $GITHUB_WORKSPACE/__tests__/chromedriver.js + node_modules/.bin/ts-node $GITHUB_WORKSPACE/__tests__/chromedriver.ts test_default_version: runs-on: ${{ matrix.os }} @@ -111,11 +111,11 @@ jobs: - run: yarn build - run: yarn package - run: yarn test - - run: | - node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts - # Cannot find chromedriver when using ncc. - # see https://github.com/nanasess/setup-chromedriver/issues/303 - # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ + # - run: | + # node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts + # # Cannot find chromedriver when using ncc. + # # see https://github.com/nanasess/setup-chromedriver/issues/303 + # # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ # rm -rf node_modules - uses: ./ if: matrix.branch == 'now' @@ -127,4 +127,4 @@ jobs: export DISPLAY=:99 chromedriver --url-base=/wd/hub & sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # disable headless mode - node $GITHUB_WORKSPACE/__tests__/chromedriver.js + node_modules/.bin/ts-node $GITHUB_WORKSPACE/__tests__/chromedriver.ts diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 43b3ec27..ac48678b 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -33,13 +33,13 @@ jobs: - run: yarn build - run: yarn package - run: yarn test - - run: | - node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts - # Cannot find chromedriver when using ncc. - # see https://github.com/nanasess/setup-chromedriver/issues/303 - # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ - # rm -rf node_modules - shell: bash + # - run: | + # node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts + # # Cannot find chromedriver when using ncc. + # # see https://github.com/nanasess/setup-chromedriver/issues/303 + # # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ + # # rm -rf node_modules + # shell: bash - shell: pwsh run: | $chrome_fullversion = (Get-Item $Env:CHROMEAPP).VersionInfo.FileVersion @@ -65,7 +65,7 @@ jobs: - name: setup run: | chromedriver --url-base=/wd/hub & - node "$Env:GITHUB_WORKSPACE\__tests__\chromedriver.js" + node_modules\.bin\ts-node "$Env:GITHUB_WORKSPACE\__tests__\chromedriver.ts" test_default_version: runs-on: ${{ matrix.os }} @@ -84,13 +84,13 @@ jobs: - run: yarn build - run: yarn package - run: yarn test - - run: | - node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts - # Cannot find chromedriver when using ncc. - # see https://github.com/nanasess/setup-chromedriver/issues/303 - # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ - # rm -rf node_modules - shell: bash + # - run: | + # node_modules/.bin/tsc $GITHUB_WORKSPACE/__tests__/chromedriver.ts + # # Cannot find chromedriver when using ncc. + # # see https://github.com/nanasess/setup-chromedriver/issues/303 + # # node_modules/.bin/ncc build $GITHUB_WORKSPACE/__tests__/chromedriver.js -o $GITHUB_WORKSPACE/__tests__ + # # rm -rf node_modules + # shell: bash - uses: ./ if: matrix.branch == 'now' - uses: nanasess/setup-chromedriver@master @@ -98,4 +98,4 @@ jobs: - name: setup run: | chromedriver --url-base=/wd/hub & - node "$Env:GITHUB_WORKSPACE\__tests__\chromedriver.js" + node_modules\.bin\ts-node "$Env:GITHUB_WORKSPACE\__tests__\chromedriver.ts"