├── .github └── workflows │ ├── pr.yml │ └── upgrade.yaml ├── .trunk ├── .gitignore ├── configs │ ├── .markdownlint.yaml │ ├── .shellcheckrc │ └── .yamllint.yaml └── trunk.yaml ├── LICENSE ├── README.md └── run_tests.sh /.github/workflows/pr.yml: -------------------------------------------------------------------------------- 1 | name: Pull Request 2 | on: 3 | - pull_request 4 | 5 | jobs: 6 | test: 7 | name: Test 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - name: Checkout 12 | uses: actions/checkout@v2 13 | 14 | - name: Testing 15 | uses: trunk-io/breakpoint@v1 16 | with: 17 | breakpoint-id: run-tests 18 | run: ./run_tests.sh 19 | trunk-token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }} 20 | org: trunk 21 | -------------------------------------------------------------------------------- /.github/workflows/upgrade.yaml: -------------------------------------------------------------------------------- 1 | name: Upgrade trunk 2 | on: 3 | schedule: 4 | - cron: 0 8 * * 1-5 5 | workflow_dispatch: {} 6 | permissions: read-all 7 | jobs: 8 | trunk_upgrade: 9 | name: Upgrade Trunk 10 | runs-on: ubuntu-latest 11 | permissions: 12 | contents: write 13 | pull-requests: write 14 | steps: 15 | - name: Checkout 16 | uses: actions/checkout@v3 17 | - name: Trunk Upgrade 18 | uses: trunk-io/trunk-action/upgrade@v1 19 | with: 20 | reviewers: pat-trunk-io 21 | -------------------------------------------------------------------------------- /.trunk/.gitignore: -------------------------------------------------------------------------------- 1 | *out 2 | *logs 3 | *actions 4 | *notifications 5 | *tools 6 | plugins 7 | user_trunk.yaml 8 | user.yaml 9 | tmp 10 | -------------------------------------------------------------------------------- /.trunk/configs/.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | # Autoformatter friendly markdownlint config (all formatting rules disabled) 2 | default: true 3 | blank_lines: false 4 | bullet: false 5 | html: false 6 | indentation: false 7 | line_length: false 8 | spaces: false 9 | url: false 10 | whitespace: false 11 | -------------------------------------------------------------------------------- /.trunk/configs/.shellcheckrc: -------------------------------------------------------------------------------- 1 | enable=all 2 | source-path=SCRIPTDIR 3 | disable=SC2154 4 | 5 | # If you're having issues with shellcheck following source, disable the errors via: 6 | # disable=SC1090 7 | # disable=SC1091 8 | -------------------------------------------------------------------------------- /.trunk/configs/.yamllint.yaml: -------------------------------------------------------------------------------- 1 | rules: 2 | quoted-strings: 3 | required: only-when-needed 4 | extra-allowed: ["{|}"] 5 | empty-values: 6 | forbid-in-block-mappings: true 7 | forbid-in-flow-mappings: true 8 | key-duplicates: {} 9 | octal-values: 10 | forbid-implicit-octal: true 11 | -------------------------------------------------------------------------------- /.trunk/trunk.yaml: -------------------------------------------------------------------------------- 1 | version: 0.1 2 | cli: 3 | version: 1.22.2 4 | plugins: 5 | sources: 6 | - id: trunk 7 | ref: v1.6.0 8 | uri: https://github.com/trunk-io/plugins 9 | lint: 10 | enabled: 11 | - checkov@3.2.148 12 | - trivy@0.52.2 13 | - trufflehog@3.79.0 14 | - actionlint@1.7.1 15 | - git-diff-check 16 | - gitleaks@8.18.4 17 | - markdownlint@0.41.0 18 | - prettier@3.3.2 19 | - shellcheck@0.10.0 20 | - shfmt@3.6.0 21 | - yamllint@1.35.1 22 | runtimes: 23 | enabled: 24 | - go@1.21.0 25 | - node@18.12.1 26 | - python@3.10.8 27 | actions: 28 | disabled: 29 | - trunk-announce 30 | - trunk-check-pre-push 31 | - trunk-fmt-pre-commit 32 | enabled: 33 | - trunk-upgrade-available 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Trunk.io 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # debugger-demo 2 | 3 | This product is deprecated and is not actively maintained. 4 | 5 | CI problems go from ☹️ to ☺️ 6 | -------------------------------------------------------------------------------- /run_tests.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | RED='\033[0;31m' 4 | COUNT=10 5 | while [ $COUNT -gt 0 ]; do 6 | printf "$COUNT " 7 | sleep 0.1 8 | let COUNT=COUNT-1 9 | done 10 | printf "\nINFO: Test completed, 1 test FAILED, 10 total actions\n" 11 | dd bs=1M count=10 if=/dev/urandom of=error.txt status=none 12 | printf "${RED}See error.txt for more info\n" 13 | exit 1 14 | --------------------------------------------------------------------------------