Fix lint findings in scripts and Dockerfiles #3
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: ["**"] | |
| pull_request: | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install lint tools | |
| run: ./test/install-tools.sh | |
| - name: Validate script syntax | |
| run: ./test/validate-scripts.sh | |
| - name: ShellCheck | |
| run: shellcheck run.sh start_squid.sh test/detect-proxy.sh test/test-proxy.sh test/validate-scripts.sh | |
| - name: Hadolint | |
| run: hadolint Dockerfile test/Dockerfile | |
| - name: Build proxy image | |
| run: docker build -t docker-proxy . | |
| - name: Build test image | |
| run: docker build -t docker-proxy-test ./test |