From db0f01e50412e46b998ef24c8a68ba56e047d260 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Sun, 13 Apr 2025 05:23:18 -0400 Subject: [PATCH 1/3] Use more consistent indentation in CI workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2aaa00..1062244 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,19 +28,19 @@ jobs: build-and-test-on-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: default - toolchain: stable - override: true - - name: "Check (crossterm)" - uses: actions-rs/cargo@v1 - with: - command: check - args: --features=render-tui,render-tui-crossterm,render-line,render-line-crossterm,signal-hook,render-line-autoconfigure,progress-tree --all --bins --tests --examples - - name: "Test (crossterm)" - uses: actions-rs/cargo@v1 - with: - command: test - args: --features=render-tui,render-tui-crossterm,render-line,render-line-crossterm,signal-hook,render-line-autoconfigure,progress-tree progress-tree" --all + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: default + toolchain: stable + override: true + - name: "Check (crossterm)" + uses: actions-rs/cargo@v1 + with: + command: check + args: --features=render-tui,render-tui-crossterm,render-line,render-line-crossterm,signal-hook,render-line-autoconfigure,progress-tree --all --bins --tests --examples + - name: "Test (crossterm)" + uses: actions-rs/cargo@v1 + with: + command: test + args: --features=render-tui,render-tui-crossterm,render-line,render-line-crossterm,signal-hook,render-line-autoconfigure,progress-tree progress-tree" --all From fc6cce5ad3cd22f8d7fb39f7733470038cfdc6ed Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Sun, 13 Apr 2025 05:23:45 -0400 Subject: [PATCH 2/3] Make CI easier to run in forks This makesthe CI workflow easier to run in forks, for those who wish to run it in feature branches that don't (or don't yet) have a PR, by making it so that, in addition to `main`, branch names that have `run-ci` as a non-trailing component also run it on `push`. --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1062244..acfc946 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,13 @@ name: CI on: push: - branches: [ main ] + branches: + - main + - "run-ci/**" + - "**/run-ci/**" pull_request: - branches: [ main ] + branches: + - main jobs: build-and-test-linux: From 12addb4d992876eeb667a8b1e84f4a46203b86c8 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Sun, 13 Apr 2025 05:26:09 -0400 Subject: [PATCH 3/3] Keep action versions up to date with Dependabot This enables grouped Dependabot version updates, for GitHub Actions only, to keep actions up to date. Currently some actions are used at very old versions; for example, this uses `actions/checkout@v1`, but the current version is `v4`. Such old versions are no longer maintained and usually run on an old unsupported Node.js version. --- .github/dependabot.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..cf24aa7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: +- package-ecosystem: github-actions + directory: '/' + schedule: + interval: weekly + groups: + github-actions: + patterns: ['*']