Connection tests #22693
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Connection tests | |
on: | |
schedule: | |
- cron: '*/60 * * * *' | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
connection-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: denolib/setup-deno@v2 | |
- name: Additional setup | |
run: | | |
sudo apt-get install nmap | |
sudo npm -g install svgo | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- name: Perform connection tests | |
run: deno run --allow-net --allow-read --allow-write --allow-run --unstable source/tests.ts | |
- name: Optimize and commit results | |
run: | | |
npx svgo --multipass -f status | |
git add static/site hosts status profile/README.md | |
git commit -m "Update connection status" | |
git push |