From 42c7c8c87b5dbcf850000363a885b7bc24c366a5 Mon Sep 17 00:00:00 2001 From: Marek128b <58476072+Marek128b@users.noreply.github.com> Date: Tue, 7 Nov 2023 09:53:45 +0000 Subject: [PATCH 1/2] added github workflows test #9 --- .github/workflows/api.yml | 50 +++++++++++++ .github/workflows/auto_approve.yml | 20 +++++ .github/workflows/auto_tag.yml | 38 ++++++++++ .github/workflows/ci_builds.yml | 74 ++++++++++++++++++ .github/workflows/cli.yml | 34 +++++++++ .github/workflows/develop_update.yml | 37 +++++++++ .github/workflows/docs.yml | 46 ++++++++++++ .github/workflows/feature_branch_update.yml | 43 +++++++++++ .github/workflows/format.yml | 55 ++++++++++++++ .github/workflows/format_push.yml | 59 +++++++++++++++ .github/workflows/labeler.yml | 18 +++++ .github/workflows/lint.yml | 83 +++++++++++++++++++++ .github/workflows/regen.yml | 36 +++++++++ .github/workflows/regen_push.yml | 46 ++++++++++++ .github/workflows/stale.yml | 65 ++++++++++++++++ .github/workflows/unit_test.yml | 35 +++++++++ 16 files changed, 739 insertions(+) create mode 100644 .github/workflows/api.yml create mode 100644 .github/workflows/auto_approve.yml create mode 100644 .github/workflows/auto_tag.yml create mode 100644 .github/workflows/ci_builds.yml create mode 100644 .github/workflows/cli.yml create mode 100644 .github/workflows/develop_update.yml create mode 100644 .github/workflows/docs.yml create mode 100644 .github/workflows/feature_branch_update.yml create mode 100644 .github/workflows/format.yml create mode 100644 .github/workflows/format_push.yml create mode 100644 .github/workflows/labeler.yml create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/regen.yml create mode 100644 .github/workflows/regen_push.yml create mode 100644 .github/workflows/stale.yml create mode 100644 .github/workflows/unit_test.yml diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml new file mode 100644 index 0000000..db78f16 --- /dev/null +++ b/.github/workflows/api.yml @@ -0,0 +1,50 @@ +name: Update API Data + +permissions: + contents: read + +on: + push: + branches: + - master + - develop + paths: + - 'keyboards/**' + - 'layouts/community/**' + - 'lib/python/**' + - 'data/**' + - '.github/workflows/api.yml' + workflow_dispatch: + +jobs: + api_data: + runs-on: ubuntu-latest + container: ghcr.io/qmk/qmk_cli + + # protect against those who work in their fork on 'important' branches + if: github.repository == 'qmk/qmk_firmware' + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + persist-credentials: false + + - name: Install dependencies + run: | + pip3 install -r requirements-dev.txt + + - name: Generate API Data + run: | + qmk generate-api + + - name: Upload API Data + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --follow-symlinks --delete + env: + AWS_S3_BUCKET: ${{ github.ref == 'refs/heads/develop' && secrets['API_SPACE_DEVELOP'] || secrets['API_SPACE_MASTER'] }} + AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_KEY }} + AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com + SOURCE_DIR: '.build/api_data' diff --git a/.github/workflows/auto_approve.yml b/.github/workflows/auto_approve.yml new file mode 100644 index 0000000..1db1c49 --- /dev/null +++ b/.github/workflows/auto_approve.yml @@ -0,0 +1,20 @@ +name: Automatic Approve + +permissions: {} + +on: + schedule: + - cron: "*/5 * * * *" + +jobs: + automatic_approve: + runs-on: ubuntu-latest + + if: github.repository == 'qmk/qmk_firmware' + + steps: + - uses: mheap/automatic-approve-action@v1 + with: + token: ${{ secrets.QMK_BOT_TOKEN }} + workflows: "format.yml,lint.yml,unit_test.yml" + dangerous_files: "lib/python/,Makefile,paths.mk,builddefs/" diff --git a/.github/workflows/auto_tag.yml b/.github/workflows/auto_tag.yml new file mode 100644 index 0000000..b446527 --- /dev/null +++ b/.github/workflows/auto_tag.yml @@ -0,0 +1,38 @@ +name: Essential files modified + +permissions: + contents: write + +on: + workflow_dispatch: + push: + branches: + - master + paths: + - builddefs/**/* + - drivers/**/* + - platforms/**/* + - quantum/**/* + - tests/**/* + - tmk_core/**/* + - util/**/* + - Makefile + - '*.mk' + +jobs: + tag: + runs-on: ubuntu-latest + + # protect against those who develop with their fork on master + if: github.repository == 'qmk/qmk_firmware' + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.66.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DEFAULT_BUMP: 'patch' diff --git a/.github/workflows/ci_builds.yml b/.github/workflows/ci_builds.yml new file mode 100644 index 0000000..81151d6 --- /dev/null +++ b/.github/workflows/ci_builds.yml @@ -0,0 +1,74 @@ +name: CI Builds + +permissions: + contents: read + +on: + push: + branches: [master, develop] + workflow_dispatch: + inputs: + branch: + type: choice + description: 'Branch to build' + options: [master, develop] + +concurrency: ci_build-${{ github.event.inputs.branch || github.ref_name }} + +jobs: + ci_builds: + if: github.repository == 'qmk/qmk_firmware' + name: "CI Build" + runs-on: self-hosted + timeout-minutes: 1380 + + strategy: + fail-fast: false + matrix: + keymap: [default, via] + + container: ghcr.io/qmk/qmk_cli + + steps: + - name: Disable safe.directory check + run : git config --global --add safe.directory '*' + + - uses: actions/checkout@v4 + with: + submodules: recursive + ref: ${{ github.event.inputs.branch || github.ref }} + + - name: Install dependencies + run: pip3 install -r requirements.txt + + - name: Run `qmk mass-compile` (keymap ${{ matrix.keymap }}) + run: | + export NCPUS=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) + qmk mass-compile -t -j $NCPUS -km ${{ matrix.keymap }} -e DUMP_CI_METADATA=yes || touch .failed + # Generate the step summary markdown + ./util/ci/generate_failure_markdown.sh > $GITHUB_STEP_SUMMARY || true + # Truncate to a maximum of 1MB to deal with GitHub workflow limit + truncate --size='<960K' $GITHUB_STEP_SUMMARY || true + # Exit with failure if the compilation stage failed + [ ! -f .failed ] || exit 1 + + - name: 'Upload artifacts' + uses: actions/upload-artifact@v3 + if: always() + with: + name: artifacts-${{ github.event.inputs.branch || github.ref_name }}-${{ matrix.keymap }} + if-no-files-found: ignore + path: | + *.bin + *.hex + *.uf2 + .build/failed.* + + - name: 'CI Discord Notification' + if: always() + working-directory: util/ci/ + env: + DISCORD_WEBHOOK: ${{ secrets.CI_DISCORD_WEBHOOK }} + run: | + python3 -m pip install -r requirements.txt + python3 ./discord-results.py --branch ${{ github.event.inputs.branch || github.ref_name }} --keymap ${{ matrix.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml new file mode 100644 index 0000000..77b5bfe --- /dev/null +++ b/.github/workflows/cli.yml @@ -0,0 +1,34 @@ +name: CLI CI + +permissions: + contents: read + +on: + push: + branches: + - master + - develop + pull_request: + paths: + - 'lib/python/**' + - 'requirements.txt' + - '.github/workflows/cli.yml' + +jobs: + test: + runs-on: ubuntu-latest + + container: ghcr.io/qmk/qmk_cli + + steps: + - name: Disable safe.directory check + run : git config --global --add safe.directory '*' + + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install dependencies + run: pip3 install -r requirements-dev.txt + - name: Run tests + run: qmk pytest diff --git a/.github/workflows/develop_update.yml b/.github/workflows/develop_update.yml new file mode 100644 index 0000000..afcda1f --- /dev/null +++ b/.github/workflows/develop_update.yml @@ -0,0 +1,37 @@ +name: Update develop after master merge + +permissions: + contents: write + +on: + push: + branches: + - master + +jobs: + develop_update: + runs-on: ubuntu-latest + + if: github.repository == 'qmk/qmk_firmware' + + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.QMK_BOT_TOKEN }} + fetch-depth: 0 + + - name: Disable automatic eol conversion + run: | + echo "* -text" > .git/info/attributes + + - name: Checkout develop + run: | + git fetch origin master develop + git checkout develop + + - name: Update develop from master + run: | + git config --global user.name "QMK Bot" + git config --global user.email "hello@qmk.fm" + git merge origin/master + git push origin develop diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..a6944e1 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,46 @@ +name: Generate Docs + +permissions: + contents: write + +on: + push: + branches: + - master + paths: + - 'tmk_core/**' + - 'quantum/**' + - 'platforms/**' + - 'docs/**' + - '.github/workflows/docs.yml' + +jobs: + generate: + runs-on: ubuntu-latest + container: ghcr.io/qmk/qmk_cli + + # protect against those who develop with their fork on master + if: github.repository == 'qmk/qmk_firmware' + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install dependencies + run: | + apt-get update && apt-get install -y rsync nodejs npm doxygen + npm install -g moxygen + + - name: Build docs + run: | + qmk --verbose generate-docs + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4.4.3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BASE_BRANCH: master + BRANCH: gh-pages + FOLDER: .build/docs + GIT_CONFIG_EMAIL: hello@qmk.fm diff --git a/.github/workflows/feature_branch_update.yml b/.github/workflows/feature_branch_update.yml new file mode 100644 index 0000000..283a255 --- /dev/null +++ b/.github/workflows/feature_branch_update.yml @@ -0,0 +1,43 @@ +name: Update feature branches after develop merge + +permissions: + contents: write + +on: + push: + branches: + - develop + +jobs: + feature_branch_update: + runs-on: ubuntu-latest + + if: github.repository == 'qmk/qmk_firmware' + + strategy: + matrix: + branch: + - xap + - riot + + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.QMK_BOT_TOKEN }} + fetch-depth: 0 + + - name: Disable automatic eol conversion + run: | + echo "* -text" > .git/info/attributes + + - name: Checkout branch + run: | + git fetch origin develop ${{ matrix.branch }} + git checkout ${{ matrix.branch }} + + - name: Update branch from develop + run: | + git config --global user.name "QMK Bot" + git config --global user.email "hello@qmk.fm" + git merge origin/develop + git push origin ${{ matrix.branch }} diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..9e8b80c --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,55 @@ +name: PR Lint Format + +permissions: + contents: read + +on: + pull_request: + paths: + - 'drivers/**' + - 'lib/arm_atsam/**' + - 'lib/lib8tion/**' + - 'lib/python/**' + - 'platforms/**' + - 'quantum/**' + - 'tests/**' + - 'tmk_core/**' + +jobs: + lint: + runs-on: ubuntu-latest + + container: ghcr.io/qmk/qmk_cli + + steps: + - name: Disable safe.directory check + run : git config --global --add safe.directory '*' + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install dependencies + run: | + pip3 install -r requirements-dev.txt + + - name: Get changed files + id: file_changes + uses: tj-actions/changed-files@v39 + + - name: Run qmk formatters + shell: 'bash {0}' + run: | + echo '${{ steps.file_changes.outputs.added_files}}' '${{ steps.file_changes.outputs.modified_files}}' > ~/files_changed.txt + qmk format-c --core-only $(< ~/files_changed.txt) || true + qmk format-python $(< ~/files_changed.txt) || true + qmk format-text $(< ~/files_changed.txt) || true + + - name: Fail when formatting required + run: | + git diff + for file in $(git diff --name-only); do + echo "File '${file}' Requires Formatting" + echo "::error file=${file}::Requires Formatting" + done + test -z "$(git diff --name-only)" diff --git a/.github/workflows/format_push.yml b/.github/workflows/format_push.yml new file mode 100644 index 0000000..61b4caf --- /dev/null +++ b/.github/workflows/format_push.yml @@ -0,0 +1,59 @@ +name: Lint Format + +permissions: + contents: read + +on: + push: + branches: + - master + - develop + +jobs: + lint: + runs-on: ubuntu-latest + + container: ghcr.io/qmk/qmk_cli + + steps: + - name: Disable safe.directory check + run : git config --global --add safe.directory '*' + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Disable automatic eol conversion + run: | + echo "* -text" > .git/info/attributes + + - name: Install dependencies + run: | + pip3 install -r requirements-dev.txt + + - name: Run qmk formatters + shell: 'bash {0}' + run: | + qmk format-c -a + qmk format-python -a + qmk format-text -a + git diff + + - uses: rlespinasse/github-slug-action@v3.x + + - name: Become QMK Bot + run: | + git config user.name 'QMK Bot' + git config user.email 'hello@qmk.fm' + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + if: ${{ github.repository == 'qmk/qmk_firmware'}} + with: + token: ${{ secrets.QMK_BOT_TOKEN }} + delete-branch: true + branch: bugfix/format_${{ env.GITHUB_REF_SLUG }} + author: QMK Bot + committer: QMK Bot + commit-message: Format code according to conventions + title: '[CI] Format code according to conventions' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..95f58ff --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: "Pull Request Labeler" + +permissions: + contents: read + pull-requests: write + +on: + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review, locked] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: '.github/labeler.yml' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..19dd7c7 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,83 @@ +name: PR Lint keyboards + +permissions: + contents: read + +on: + pull_request: + paths: + - 'keyboards/**' + +jobs: + lint: + runs-on: ubuntu-latest + + container: ghcr.io/qmk/qmk_cli + + steps: + - name: Disable safe.directory check + run : git config --global --add safe.directory '*' + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install dependencies + run: pip3 install -r requirements-dev.txt + + - name: Get changed files + id: file_changes + uses: tj-actions/changed-files@v39 + + - name: Print info + run: | + git rev-parse --short HEAD + echo ${{ github.event.pull_request.base.sha }} + echo '${{ steps.file_changes.outputs.all_changed_files}}' + + - name: Run qmk lint + if: always() + shell: 'bash {0}' + run: | + QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.all_changed_files}}' | sed 's/ /\n/g') + QMK_KEYBOARDS=$(qmk list-keyboards) + + exit_code=0 + + for KB in $QMK_KEYBOARDS; do + KEYBOARD_CHANGES=$(echo "$QMK_CHANGES" | grep -E '^(keyboards/'${KB}'/)') + if [[ -z "$KEYBOARD_CHANGES" ]]; then + # skip as no changes for this keyboard + continue + fi + + KEYMAP_ONLY=$(echo "$KEYBOARD_CHANGES" | grep -cv /keymaps/) + if [[ $KEYMAP_ONLY -gt 0 ]]; then + echo "linting ${KB}" + + qmk lint --keyboard ${KB} && qmk info -l --keyboard ${KB} + exit_code=$(($exit_code + $?)) + fi + done + + qmk format-text ${{ steps.file_changes.outputs.all_changed_files}} || true + for file in ${{ steps.file_changes.outputs.all_changed_files}}; do + if ! git diff --quiet $file; then + echo "File '${file}' Requires Formatting" + echo "::error file=${file}::Requires Formatting" + exit_code=$(($exit_code + 1)) + fi + done + + if [[ $exit_code -gt 255 ]]; then + exit 255 + fi + exit $exit_code + + - name: Verify keyboard aliases + if: always() + shell: 'bash {0}' + run: | + git reset --hard + git clean -xfd + qmk ci-validate-aliases diff --git a/.github/workflows/regen.yml b/.github/workflows/regen.yml new file mode 100644 index 0000000..a315260 --- /dev/null +++ b/.github/workflows/regen.yml @@ -0,0 +1,36 @@ +name: PR Regenerate Files + +permissions: + contents: read + +on: + pull_request: + paths: + - 'data/constants/**' + - 'lib/python/**' + +jobs: + regen: + runs-on: ubuntu-latest + + container: ghcr.io/qmk/qmk_cli + + steps: + - name: Disable safe.directory check + run : git config --global --add safe.directory '*' + + - uses: actions/checkout@v4 + + - name: Run qmk generators + run: | + util/regen.sh + git diff + + - name: Fail when regeneration required + run: | + git diff + for file in $(git diff --name-only); do + echo "File '${file}' Requires Regeneration" + echo "::error file=${file}::Requires Regeneration" + done + test -z "$(git diff --name-only)" diff --git a/.github/workflows/regen_push.yml b/.github/workflows/regen_push.yml new file mode 100644 index 0000000..f1b7812 --- /dev/null +++ b/.github/workflows/regen_push.yml @@ -0,0 +1,46 @@ +name: Regenerate Files + +permissions: + contents: write + +on: + push: + branches: + - master + - develop + +jobs: + regen: + runs-on: ubuntu-latest + + container: ghcr.io/qmk/qmk_cli + + steps: + - name: Disable safe.directory check + run : git config --global --add safe.directory '*' + + - uses: actions/checkout@v4 + + - name: Run qmk generators + run: | + util/regen.sh + git diff + + - uses: rlespinasse/github-slug-action@v3.x + + - name: Become QMK Bot + run: | + git config user.name 'QMK Bot' + git config user.email 'hello@qmk.fm' + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + if: ${{ github.repository == 'qmk/qmk_firmware'}} + with: + token: ${{ secrets.QMK_BOT_TOKEN }} + delete-branch: true + branch: bugfix/regen_${{ env.GITHUB_REF_SLUG }} + author: QMK Bot + committer: QMK Bot + commit-message: Regenerate Files + title: '[CI] Regenerate Files' diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..f011fb5 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,65 @@ +name: 'Close stale issues and PRs' + +permissions: + issues: write + pull-requests: write + +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + remove-stale-when-updated: true + exempt-draft-pr: true + ascending: true + operations-per-run: 150 + + stale-issue-label: stale + days-before-issue-stale: 90 + days-before-issue-close: 30 + exempt-issue-labels: bug,in progress,on hold,discussion,to do + + stale-issue-message: > + This issue has been automatically marked as stale because it has not had activity in the + last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity + occurs. + + For maintainers: Please label with `bug`, `in progress`, `on hold`, `discussion` or `to do` to prevent + the issue from being re-flagged. + + close-issue-message: > + This issue has been automatically closed because it has not had activity in the last 30 days. + If this issue is still valid, re-open the issue and let us know. + + // [stale-action-closed] + + stale-pr-label: stale + days-before-pr-stale: 45 + days-before-pr-close: 30 + exempt-pr-labels: bug,awaiting review,breaking_change,in progress,on hold + + stale-pr-message: > + Thank you for your contribution! + + This pull request has been automatically marked as stale because it has not had + activity in the last 45 days. It will be closed in 30 days if no further activity occurs. + Please feel free to give a status update now, or re-open when it's ready. + + For maintainers: Please label with `bug`, `awaiting review`, `breaking_change`, `in progress`, or `on hold` + to prevent the issue from being re-flagged. + + close-pr-message: > + Thank you for your contribution! + + This pull request has been automatically closed because it has not had activity in the last 30 days. + Please feel free to give a status update now, ping for review, or re-open when it's ready. + + // [stale-action-closed] diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml new file mode 100644 index 0000000..eec8c8b --- /dev/null +++ b/.github/workflows/unit_test.yml @@ -0,0 +1,35 @@ +name: Unit Tests + +permissions: + contents: read + +on: + push: + branches: + - master + - develop + pull_request: + paths: + - 'builddefs/**' + - 'quantum/**' + - 'platforms/**' + - 'tmk_core/**' + - 'tests/**' + - '*.mk' + - 'Makefile' + - '.github/workflows/unit_test.yml' + +jobs: + test: + runs-on: ubuntu-latest + + container: ghcr.io/qmk/qmk_cli + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install dependencies + run: pip3 install -r requirements-dev.txt + - name: Run tests + run: make test:all From 425829c3fb78e5c64a617c3c18d3dda22ae13e1c Mon Sep 17 00:00:00 2001 From: Marek128b <58476072+Marek128b@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:04:20 +0000 Subject: [PATCH 2/2] env changed --- .github/workflows/api.yml | 2 ++ .github/workflows/auto_approve.yml | 2 ++ .github/workflows/ci_builds.yml | 2 ++ .github/workflows/cli.yml | 2 ++ .github/workflows/develop_update.yml | 2 ++ .github/workflows/docs.yml | 2 ++ .github/workflows/feature_branch_update.yml | 2 ++ .github/workflows/format.yml | 2 ++ .github/workflows/format_push.yml | 2 ++ .github/workflows/labeler.yml | 2 ++ .github/workflows/lint.yml | 2 ++ .github/workflows/regen.yml | 2 ++ .github/workflows/regen_push.yml | 2 ++ .github/workflows/stale.yml | 2 ++ .github/workflows/unit_test.yml | 2 ++ 15 files changed, 30 insertions(+) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index db78f16..ac38c89 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -18,6 +18,8 @@ on: jobs: api_data: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/auto_approve.yml b/.github/workflows/auto_approve.yml index 1db1c49..cb0c2b6 100644 --- a/.github/workflows/auto_approve.yml +++ b/.github/workflows/auto_approve.yml @@ -8,6 +8,8 @@ on: jobs: automatic_approve: + env: + working-directory: ./software runs-on: ubuntu-latest if: github.repository == 'qmk/qmk_firmware' diff --git a/.github/workflows/ci_builds.yml b/.github/workflows/ci_builds.yml index 81151d6..6054746 100644 --- a/.github/workflows/ci_builds.yml +++ b/.github/workflows/ci_builds.yml @@ -17,6 +17,8 @@ concurrency: ci_build-${{ github.event.inputs.branch || github.ref_name }} jobs: ci_builds: + env: + working-directory: ./software if: github.repository == 'qmk/qmk_firmware' name: "CI Build" runs-on: self-hosted diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 77b5bfe..52eb222 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -16,6 +16,8 @@ on: jobs: test: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/develop_update.yml b/.github/workflows/develop_update.yml index afcda1f..7eb4966 100644 --- a/.github/workflows/develop_update.yml +++ b/.github/workflows/develop_update.yml @@ -10,6 +10,8 @@ on: jobs: develop_update: + env: + working-directory: ./software runs-on: ubuntu-latest if: github.repository == 'qmk/qmk_firmware' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a6944e1..9639ec7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,6 +16,8 @@ on: jobs: generate: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/feature_branch_update.yml b/.github/workflows/feature_branch_update.yml index 283a255..c047054 100644 --- a/.github/workflows/feature_branch_update.yml +++ b/.github/workflows/feature_branch_update.yml @@ -10,6 +10,8 @@ on: jobs: feature_branch_update: + env: + working-directory: ./software runs-on: ubuntu-latest if: github.repository == 'qmk/qmk_firmware' diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 9e8b80c..89b8434 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -17,6 +17,8 @@ on: jobs: lint: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/format_push.yml b/.github/workflows/format_push.yml index 61b4caf..e20bee1 100644 --- a/.github/workflows/format_push.yml +++ b/.github/workflows/format_push.yml @@ -11,6 +11,8 @@ on: jobs: lint: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 95f58ff..fb23292 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -10,6 +10,8 @@ on: jobs: triage: + env: + working-directory: ./software runs-on: ubuntu-latest steps: - uses: actions/labeler@main diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 19dd7c7..9ef2ddc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,6 +10,8 @@ on: jobs: lint: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/regen.yml b/.github/workflows/regen.yml index a315260..54fc287 100644 --- a/.github/workflows/regen.yml +++ b/.github/workflows/regen.yml @@ -11,6 +11,8 @@ on: jobs: regen: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/regen_push.yml b/.github/workflows/regen_push.yml index f1b7812..a15f9b9 100644 --- a/.github/workflows/regen_push.yml +++ b/.github/workflows/regen_push.yml @@ -11,6 +11,8 @@ on: jobs: regen: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index f011fb5..3cef795 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,6 +11,8 @@ on: jobs: stale: + env: + working-directory: ./software runs-on: ubuntu-latest steps: - uses: actions/stale@v8 diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index eec8c8b..a0f6876 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -21,6 +21,8 @@ on: jobs: test: + env: + working-directory: ./software runs-on: ubuntu-latest container: ghcr.io/qmk/qmk_cli