chroe: add toc markdown generator task #21
Workflow file for this run
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:pr | |
on: | |
pull_request: | |
repository_dispatch: | |
types: ["test:pr"] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
detect-changes: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
permissions: | |
pull-requests: read | |
outputs: | |
workflow_proceed: ${{ steps.changes.outputs.workflow_proceed }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Detect changes | |
uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
workflow_proceed: | |
- 'go.mod' | |
- 'Taskfile.dist.yaml' | |
- '.github/**' | |
- 'cmd/nelm/**' | |
- 'pkg/**' | |
- 'scripts/**' | |
lint: | |
needs: detect-changes | |
uses: ./.github/workflows/_lint.yml | |
with: | |
forceSkip: ${{ github.event_name == 'pull_request' && needs.detect-changes.outputs.workflow_proceed == 'false' }} | |
unit: | |
needs: detect-changes | |
uses: ./.github/workflows/_test_unit.yml | |
with: | |
forceSkip: ${{ github.event_name == 'pull_request' && needs.detect-changes.outputs.workflow_proceed == 'false' }} | |
build: | |
if: ${{ !(github.event_name == 'pull_request' && needs.detect-changes.outputs.workflow_proceed == 'false') }} | |
needs: detect-changes | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Install build dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y gcc-aarch64-linux-gnu file | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
cache: true | |
go-version-file: go.mod | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: task -p build:dev:all | |
notify: | |
if: | | |
(github.event_name == 'pull_request' && github.event.pull_request.draft == false && failure()) || | |
(github.event_name != 'pull_request' && failure()) | |
needs: | |
- lint | |
- unit | |
uses: werf/common-ci/.github/workflows/notification.yml@main | |
secrets: | |
loopNotificationGroup: ${{ vars.LOOP_NOTIFICATION_GROUP }} | |
webhook: ${{ secrets.LOOP_NOTIFICATION_WEBHOOK }} | |
notificationChannel: ${{ vars.LOOP_NOTIFICATION_CHANNEL }} |