Skip to content

Commit

Permalink
Add CLOUDFLARE_PROXY test environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 19, 2020
1 parent eecc6e2 commit e053371
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,44 @@ jobs:
CLOUDFLARE_EMAIL: ${{secrets.CLOUDFLARE_EMAIL}}
CLOUDFLARE_KEY: ${{secrets.CLOUDFLARE_KEY}}
run: ${{matrix.env}} bundle exec rspec

test-with-proxy:
runs-on: ${{matrix.os}}-latest
continue-on-error: ${{matrix.experimental}}

strategy:
matrix:
os:
- ubuntu
ruby:
- 2.7

experimental: [false]
env: [""]

proxy:
- http://localhost:3128

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}

- name: Install dependencies
run: ${{matrix.env}} bundle install

- name: Prepare squid
if: matrix.proxy
run: |
sudo apt-get install squid
sudo systemctl start squid
- name: Run tests
timeout-minutes: 5
env:
CLOUDFLARE_TEST_ZONE_MANAGEMENT: true
CLOUDFLARE_PROXY: ${{matrix.proxy}}
CLOUDFLARE_EMAIL: ${{secrets.CLOUDFLARE_EMAIL}}
CLOUDFLARE_KEY: ${{secrets.CLOUDFLARE_KEY}}
run: ${{matrix.env}} bundle exec rspec

0 comments on commit e053371

Please sign in to comment.