See if modifying host is working
This commit is contained in:
48
.github/workflows/nightly.yml
vendored
48
.github/workflows/nightly.yml
vendored
@@ -30,26 +30,38 @@ jobs:
|
|||||||
runs-on: [ubuntu-latest, cloud]
|
runs-on: [ubuntu-latest, cloud]
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Modify hosts file
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: home-automation-backend_build_${{ github.run_number }}
|
|
||||||
- name: Print helping message
|
|
||||||
run: |
|
run: |
|
||||||
chmod +x ${GITHUB_WORKSPACE}/home-automation-backend
|
echo 127.0.0.1 api.notion.com >> /etc/hosts
|
||||||
${GITHUB_WORKSPACE}/home-automation-backend help
|
- name: Start a dummy server listening on 443
|
||||||
|
run: |
|
||||||
|
while true; do
|
||||||
|
echo "HTTP/1.1 200 OK\\n\\nHello from dummy server" | nc -l -p 443 -q 1
|
||||||
|
done
|
||||||
|
- name: Try curl the dummy server on port 443
|
||||||
|
run: |
|
||||||
|
curl -k https://localhost:443
|
||||||
|
curl -k https://api.notion.com
|
||||||
|
# - name: Download artifacts
|
||||||
|
# uses: actions/download-artifact@v3
|
||||||
|
# with:
|
||||||
|
# name: home-automation-backend_build_${{ github.run_number }}
|
||||||
|
# - name: Print helping message
|
||||||
|
# run: |
|
||||||
|
# chmod +x ${GITHUB_WORKSPACE}/home-automation-backend
|
||||||
|
# ${GITHUB_WORKSPACE}/home-automation-backend help
|
||||||
|
|
||||||
nightly-tests:
|
# nightly-tests:
|
||||||
runs-on: [ubuntu-latest, cloud]
|
# runs-on: [ubuntu-latest, cloud]
|
||||||
needs: build
|
# needs: build
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- name: Download artifacts
|
# - name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: home-automation-backend_build_${{ github.run_number }}
|
# name: home-automation-backend_build_${{ github.run_number }}
|
||||||
- name: Check files
|
# - name: Check files
|
||||||
run: ls -lR
|
# run: ls -lR
|
||||||
# - name: Set up Go
|
# - name: Set up Go
|
||||||
# uses: actions/setup-go@v4
|
# uses: actions/setup-go@v4
|
||||||
# with:
|
# with:
|
||||||
|
|||||||
Reference in New Issue
Block a user