Skip to content

Commit

Permalink
Merge pull request #719 from Webperf-se/regression-success-improvement
Browse files Browse the repository at this point in the history
Update GitHub Actions: Optional GITHUB SECRETS for Regression Tests
  • Loading branch information
cockroacher authored Nov 12, 2024
2 parents 6e6ee0e + 5935193 commit fc9c65e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/regression-test-email.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ jobs:
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- if: ${{ matrix.os == 'ubuntu-latest' }}
continue-on-error: true
shell: bash
env:
IP2LOCATION_DOWNLOAD_URL: ${{ secrets.IP2LOCATION_DOWNLOAD_URL }}
name: Download IP2LOCATION DB (Using repository secret) - Linux
run: wget -q -O data/IP2LOCATION-LITE-DB1.IPV6.BIN $IP2LOCATION_DOWNLOAD_URL
- if: ${{ matrix.os == 'windows-latest' }}
continue-on-error: true
shell: pwsh
env:
IP2LOCATION_DOWNLOAD_URL: ${{ secrets.IP2LOCATION_DOWNLOAD_URL }}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/regression-test-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,45 +38,53 @@ jobs:
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- if: ${{ matrix.os == 'ubuntu-latest' }}
continue-on-error: true
shell: bash
env:
IP2LOCATION_DOWNLOAD_URL: ${{ secrets.IP2LOCATION_DOWNLOAD_URL }}
name: Download IP2LOCATION DB (Using repository secret) - Linux
run: |
wget -q -O data/IP2LOCATION-LITE-DB1.IPV6.BIN $IP2LOCATION_DOWNLOAD_URL
- if: ${{ matrix.os == 'windows-latest' }}
continue-on-error: true
shell: pwsh
env:
IP2LOCATION_DOWNLOAD_URL: ${{ secrets.IP2LOCATION_DOWNLOAD_URL }}
name: Download IP2LOCATION DB (Using repository secret) - Windows
run: |
Invoke-WebRequest -Uri ${env:IP2LOCATION_DOWNLOAD_URL} -OutFile data\IP2LOCATION-LITE-DB1.IPV6.BIN
- if: ${{ matrix.os == 'ubuntu-latest' }}
continue-on-error: true
shell: bash
name: Download Ads database (BlockListProject) - Linux
run: |
wget -q -O data/blocklistproject-ads-nl.txt https://blocklistproject.github.io/Lists/alt-version/ads-nl.txt
- if: ${{ matrix.os == 'windows-latest' }}
continue-on-error: true
shell: pwsh
name: Download Ads database (BlockListProject) - Windows
run: |
Invoke-WebRequest -Uri https://blocklistproject.github.io/Lists/alt-version/ads-nl.txt -OutFile data\blocklistproject-ads-nl.txt
- if: ${{ matrix.os == 'ubuntu-latest' }}
continue-on-error: true
shell: bash
name: Download Tracking database (BlockListProject) - Linux
run: |
wget -q -O data/blocklistproject-tracking-nl.txt https://blocklistproject.github.io/Lists/alt-version/tracking-nl.txt
- if: ${{ matrix.os == 'windows-latest' }}
continue-on-error: true
shell: pwsh
name: Download Tracking database (BlockListProject) - Windows
run: |
Invoke-WebRequest -Uri https://blocklistproject.github.io/Lists/alt-version/tracking-nl.txt -OutFile data\blocklistproject-tracking-nl.txt
- if: ${{ matrix.os == 'ubuntu-latest' }}
continue-on-error: true
shell: bash
name: Download Services database (disconnect) - Linux
run: |
wget -q -O data/disconnect-services.json https://raw.githubusercontent.com/disconnectme/disconnect-tracking-protection/master/services.json
- if: ${{ matrix.os == 'windows-latest' }}
continue-on-error: true
shell: pwsh
name: Download Services database (disconnect) - Windows
run: |
Expand All @@ -94,10 +102,6 @@ jobs:
sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable
google-chrome --version
- if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash
name: Setup GeckoDriver (Used for Selenium)
run: wget -q -O - https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz | tar -xvzf -
- name: Setup npm packages
run: npm install --omit=dev
- if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down

0 comments on commit fc9c65e

Please sign in to comment.