Skip to content

Commit

Permalink
Ensure requests to production fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Apr 25, 2024
1 parent 2dc974a commit 63f16da
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ jobs:
python-version: '3.9'
steps:
- uses: actions/checkout@v4
- name: Ensure requests to production domains fail
run: |
if [ "$NOT_LINUX" == "true" ] ; then
echo "Can't set /etc/hosts configuration on non-Linux runner"
exit 1
fi
echo "203.0.113.0 logfire.dev" | sudo tee -a /etc/hosts
echo "203.0.113.0 logfire-api.pydantic.dev" | sudo tee -a /etc/hosts
echo "203.0.113.0 logfire.pydantic.dev" | sudo tee -a /etc/hosts
env:
NOT_LINUX: runner.os != 'linux'
- name: set up python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 63f16da

Please sign in to comment.