steps: - name: Lint image: silkeh/clang:16 commands: - echo "Linting C++ code..." - clang-tidy main.cpp -- -std=c++17 when: event: - push - pull_request - name: Build image: alpine commands: - apk add --no-cache g++ libc-dev - mkdir -p build - echo "Building project..." - g++ -o build/main main.cpp - name: Test image: alpine commands: - echo "Running tests..." - ./build/main depends_on: - Build - name: discord notification image: appleboy/drone-discord settings: webhook_id: 1357683988373704824 webhook_token: wtAZM1Ps4upFV0Z5_HJKzWkJ19-lj0tagEwPofOJN4O3OHuET309RTkKQgakDWVrl0Ml message: > Repository {{repo.name}} Owner {{repo.owner}} Build Message {{build.message}} Commiter: {{build.author}} {{#success build.status}} build {{build.number}} succeeded. Good job. {{else}} build {{build.number}} failed. Fix me please. {{/success}} - name: Release image: plugins/gitea-release settings: api_key: GITEA_TOKEN base_url: https://git.xyro.win files: /build/main