Skip to content

Commit 9f49535

Browse files
Bump the actions group with 4 updates (#3)
* Bump the actions group with 4 updates Bumps the actions group with 4 updates: [asdf-vm/actions](https://github.com/asdf-vm/actions), [actions/checkout](https://github.com/actions/checkout), [pre-commit/action](https://github.com/pre-commit/action) and [GoogleCloudPlatform/release-please-action](https://github.com/googlecloudplatform/release-please-action). Updates `asdf-vm/actions` from 1 to 4 - [Release notes](https://github.com/asdf-vm/actions/releases) - [Changelog](https://github.com/asdf-vm/actions/blob/master/CHANGELOG.md) - [Commits](asdf-vm/actions@v1...v4) Updates `actions/checkout` from 2 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2...v4) Updates `pre-commit/action` from 3.0.0 to 3.0.1 - [Release notes](https://github.com/pre-commit/action/releases) - [Commits](pre-commit/action@v3.0.0...v3.0.1) Updates `GoogleCloudPlatform/release-please-action` from 2 to 4 - [Release notes](https://github.com/googlecloudplatform/release-please-action/releases) - [Changelog](https://github.com/googleapis/release-please-action/blob/main/CHANGELOG.md) - [Commits](googleapis/release-please-action@v2...v4) --- updated-dependencies: - dependency-name: asdf-vm/actions dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/checkout dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: pre-commit/action dependency-version: 3.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: GoogleCloudPlatform/release-please-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * add giturl * update build.yml * pin os to macos-13 * Update plugin test * test more clang versions * update action to v4 * bypass install on macos --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: shenxianpeng <xianpeng.shen@gmail.com>
1 parent b18b97d commit 9f49535

File tree

3 files changed

+31
-29
lines changed

3 files changed

+31
-29
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
1-
name: Build
1+
name: Plugin Test
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
pull_request:
87

98
jobs:
109
plugin_test:
1110
name: asdf plugin test
1211
strategy:
1312
matrix:
14-
os: [ubuntu-latest, macos-latest]
15-
plugin:
16-
- clang-format
17-
- clang-tidy
18-
- clang-query
19-
- clang-apply-replacements
20-
include:
21-
- plugin: clang-format
22-
command: clang-format --version
23-
- plugin: clang-tidy
24-
command: clang-tidy --version
25-
- plugin: clang-query
26-
command: clang-query --version
27-
- plugin: clang-apply-replacements
28-
command: clang-apply-replacements --version
13+
os: [ubuntu-latest, macos-13]
14+
tool:
15+
- { plugin: clang-format, command: "clang-format --version" }
16+
- { plugin: clang-query, command: "clang-query --version" }
17+
- { plugin: clang-tidy, command: "clang-tidy --version" }
18+
- { plugin: clang-apply-replacements, command: "clang-apply-replacements --version" }
19+
version: ["18", "19", "20"]
20+
2921
runs-on: ${{ matrix.os }}
22+
3023
steps:
31-
- name: Test ${{ matrix.plugin }}
32-
uses: asdf-vm/actions/plugin-test@v1
24+
- name: Install asdf
25+
uses: asdf-vm/actions/setup@v4
26+
27+
- name: Add plugin ${{ matrix.tool.plugin }}
28+
run: |
29+
asdf plugin add ${{ matrix.tool.plugin }} https://github.com/cpp-linter/asdf-clang-tools.git
30+
31+
- name: Install and set ${{ matrix.tool.plugin }} to ${{ matrix.version }}
32+
run: |
33+
asdf install ${{ matrix.tool.plugin }} ${{ matrix.version }}
34+
asdf set ${{ matrix.tool.plugin }} ${{ matrix.version }} --home
3335
env:
3436
ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE: 1
35-
with:
36-
plugin: ${{ matrix.plugin }}
37-
command: ${{ matrix.command }}
37+
38+
- name: Run ${{ matrix.tool.plugin }} version check
39+
run: ${{ matrix.tool.command }}

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Install asdf dependencies
17-
uses: asdf-vm/actions/install@v1
17+
uses: asdf-vm/actions/install@v4
1818

1919
- name: Run ShellCheck
2020
run: scripts/shellcheck.bash
@@ -23,10 +23,10 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727

2828
- name: Install asdf dependencies
29-
uses: asdf-vm/actions/install@v1
29+
uses: asdf-vm/actions/install@v4
3030

3131
- name: List file to shfmt
3232
run: shfmt -f .
@@ -35,7 +35,7 @@ jobs:
3535
run: scripts/shfmt.bash
3636

3737
- name: Run pre-commit hooks
38-
uses: pre-commit/action@v3.0.0
38+
uses: pre-commit/action@v3.0.1
3939
with:
4040
extra_args: --all-files
4141
env:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
release-please:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: GoogleCloudPlatform/release-please-action@v2
12+
- uses: GoogleCloudPlatform/release-please-action@v4
1313
with:
1414
release-type: simple

0 commit comments

Comments
 (0)