Skip to content

Commit b07d8a3

Browse files
authored
ci: run yamllint on pull requests (#971)
1 parent e7d020c commit b07d8a3

3 files changed

Lines changed: 26 additions & 10 deletions

File tree

.github/workflows/pr.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
fetch-depth: 0
1818
- uses: editorconfig-checker/action-editorconfig-checker@v2
1919
- run: editorconfig-checker
20+
yamllint:
21+
name: Lint YAML
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v7
25+
- uses: actions/setup-python@v6
26+
with:
27+
python-version: '3.14'
28+
- uses: pre-commit/action@v3.0.1
29+
with:
30+
extra_args: yamllint --all-files
2031
security:
2132
name: Security validation
2233
runs-on: ubuntu-latest
@@ -115,9 +126,8 @@ jobs:
115126
./isthmus-cli/src/test/script/smoke.sh
116127
./isthmus-cli/src/test/script/tpch_smoke.sh
117128
- name: Rename the artifact to OS-unique name
118-
shell: bash
119-
run: |
120-
value=`mv isthmus-cli/build/native/nativeCompile/isthmus isthmus-cli/build/native/nativeCompile/isthmus-${{ matrix.os }}`
129+
working-directory: isthmus-cli/build/native/nativeCompile
130+
run: mv isthmus isthmus-${{ matrix.os }}
121131
- name: Publish artifact
122132
uses: actions/upload-artifact@v7
123133
with:

.github/workflows/pr_title.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
permissions:
4646
pull-requests: write
4747
steps:
48+
# The message below is prose inside the github-script template literal;
49+
# wrapping it would change the rendered comment, so disable line-length here.
50+
# yamllint disable rule:line-length
4851
- uses: actions/github-script@v9
4952
with:
5053
script: |
@@ -90,3 +93,4 @@ jobs:
9093
core.setFailed(
9194
"PR title and description do not follow the Conventional Commits specification."
9295
);
96+
# yamllint enable rule:line-length

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ jobs:
4141
./isthmus-cli/src/test/script/smoke.sh
4242
./isthmus-cli/src/test/script/tpch_smoke.sh
4343
- name: Rename the artifact to OS-unique name
44-
shell: bash
45-
run: |
46-
value=`mv isthmus-cli/build/native/nativeCompile/isthmus isthmus-cli/build/native/nativeCompile/isthmus-${{ matrix.os }}`
44+
working-directory: isthmus-cli/build/native/nativeCompile
45+
run: mv isthmus isthmus-${{ matrix.os }}
4746
- name: Publish artifact
4847
uses: actions/upload-artifact@v7
4948
with:
@@ -86,18 +85,21 @@ jobs:
8685
with:
8786
name: isthmus-macOS-latest
8887
path: native/libs
89-
- name: Get bot user ID
88+
- name: Get bot user ID and email
9089
id: bot-user-id
9190
run: |
92-
echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
91+
slug="${{ steps.app-token.outputs.app-slug }}"
92+
user_id="$(gh api "/users/${slug}[bot]" --jq .id)"
93+
echo "user-id=${user_id}" >> "$GITHUB_OUTPUT"
94+
echo "email=${user_id}+${slug}[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
9395
env:
9496
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
9597
- name: Run semantic-release
9698
run: ./ci/release/run.sh
9799
env:
98100
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
99-
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
100-
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
101+
GIT_AUTHOR_EMAIL: ${{ steps.bot-user-id.outputs.email }}
102+
GIT_COMMITTER_EMAIL: ${{ steps.bot-user-id.outputs.email }}
101103
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
102104
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
103105
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

0 commit comments

Comments
 (0)