Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test on master branch #44

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
branch: [ 'master', 'now' ]
steps:
- uses: actions/checkout@v2
- if: matrix.os == 'ubuntu-latest'
Expand All @@ -35,6 +36,11 @@ jobs:
CHROME_VERSION=$("$CHROMEAPP" --version | cut -f 3 -d ' ' | cut -d '.' -f 1)
echo "CHROMEDRIVER_VERSION=$(curl --location --fail --retry 10 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION})" >> $GITHUB_ENV
- uses: ./
if: matrix.branch == 'now'
with:
chromedriver-version: ${{ env.CHROMEDRIVER_VERSION }}
- uses: nanasess/setup-chromedriver@master
if: matrix.branch == 'master'
with:
chromedriver-version: ${{ env.CHROMEDRIVER_VERSION }}
- name: setup
Expand All @@ -51,6 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
branch: [ 'master', 'now' ]
steps:
- uses: actions/checkout@v2
- if: matrix.os == 'ubuntu-latest'
Expand All @@ -61,6 +68,9 @@ jobs:
- run: yarn build
- run: yarn test
- uses: ./
if: matrix.branch == 'now'
- uses: nanasess/setup-chromedriver@master
if: matrix.branch == 'master'
- name: setup
run: |
"$CHROMEAPP" --version
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
branch: [ 'master', 'now' ]
steps:
- uses: actions/checkout@v2
- shell: pwsh
Expand All @@ -36,6 +38,11 @@ jobs:
$version = $response.Content
echo "CHROMEDRIVER_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- uses: ./
if: matrix.branch == 'now'
with:
chromedriver-version: ${{ env.CHROMEDRIVER_VERSION }}
- uses: nanasess/setup-chromedriver@master
if: matrix.branch == 'master'
with:
chromedriver-version: ${{ env.CHROMEDRIVER_VERSION }}
- name: setup
Expand All @@ -48,6 +55,8 @@ jobs:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
branch: [ 'master', 'now' ]
steps:
- uses: actions/checkout@v2
- shell: pwsh
Expand All @@ -57,6 +66,9 @@ jobs:
- run: yarn build
- run: yarn test
- uses: ./
if: matrix.branch == 'now'
- uses: nanasess/setup-chromedriver@master
if: matrix.branch == 'master'
- name: setup
run: |
pip3 install selenium
Expand Down