feat: Add support for multiple OS, and add version input #18
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: Test setup-cloudflared | |
on: | |
push: | |
paths: | |
- action.yml | |
- scripts/** | |
- shutdown/action.yml | |
- .github/workflows/test.yaml | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup cloudflared using setup-cloudflared | |
uses: AnimMouse/setup-cloudflared@main | |
with: | |
cloudflare_tunnel_credential: ${{ secrets.CLOUDFLARE_TUNNEL_CREDENTIAL }} | |
cloudflare_tunnel_configuration: ${{ secrets.CLOUDFLARE_TUNNEL_CONFIGURATION }} | |
cloudflare_tunnel_id: ${{ secrets.CLOUDFLARE_TUNNEL_ID }} | |
- name: Test cloudflared installed by setup-cloudflared using Python HTTP server for 1 minute | |
run: timeout 1m python -m http.server 8080 || true | |
- name: Shutdown cloudflared using setup-cloudflared/shutdown | |
if: always() | |
uses: AnimMouse/setup-cloudflared/shutdown@main |