Merge pull request #47 from cantabular/dependabot/github_actions/acti… #93
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Build | |
| run: | | |
| make build | |
| - name: Change compiled binary capabilities | |
| run: | | |
| sudo setcap 'cap_net_bind_service=+ep' ./https-redirect | |
| - name: Run and test redirect | |
| run: | | |
| ./https-redirect & | |
| curl -v localhost:80 2>&1 | grep "307 Temporary Redirect" |