Skip to content

Commit a9b4c8c

Browse files
committed
Simplify 'example.com' test: do not rely on stale hash
1 parent b200347 commit a9b4c8c

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/workflows/test-example-com.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,7 @@ jobs:
4646
token: ${{ secrets.GITHUB_TOKEN }}
4747

4848
- name: test dohd resolution of example.com
49-
id: test
5049
run: |
5150
sudo chmod a+x ./curl
5251
sleep 5
53-
./curl -s --doh-url https://127.0.0.1:8053 --doh-insecure https://example.com
54-
echo "::set-output name=hash::$(./curl -s --doh-url https://127.0.0.1:8053 --doh-insecure https://example.com | sha256sum | cut -d' ' -f1 | xargs)"
55-
echo "$(./curl -s --doh-url https://127.0.0.1:8053 --doh-insecure https://example.com | sha256sum | cut -d' ' -f1 | xargs)"
56-
57-
- name: check example hash
58-
run: |
59-
test ${{ steps.test.outputs.hash }} = ea8fac7c65fb589b0d53560f5251f74f9e9b243478dcb6b3ea79b5e36449c8d9
60-
52+
./curl -s --doh-url https://127.0.0.1:8053 --doh-insecure https://example.com | grep -q "Example Domain"

0 commit comments

Comments
 (0)