Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ env:
permissions:
contents: read
packages: write
pull-requests: read

jobs:
lint:
Expand Down Expand Up @@ -107,7 +108,16 @@ jobs:
- name: Lint Yaml
run: yamllint -c yamllint.yml $(git ls-files "*.yml")
- name: Check async/await compliance in diff
run: yarn run check-diff-async
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: github.token can be used instead, and better IMHO (can be used in default parameters or actions, not a "fake" secret created temporarily...)

BRANCH_NAME: ${{ github.ref_name }}
Comment thread
francoisferrand marked this conversation as resolved.
run: |
if gh pr list --head "$BRANCH_NAME" --state open --json labels \
--jq '.[].labels[].name' 2>/dev/null | grep -qx 'skip-async-migration'; then
Comment on lines +115 to +116

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can't we use the --label parameter to get only skip-async-migration PRs?

if gh pr list --head "$BRANCH_NAME" --state open --label skip-async-migration ; then

echo "Skipping async/await check: 'skip-async-migration' label found"
else
yarn run check-diff-async
fi
Comment thread
DarkIsDude marked this conversation as resolved.

async-migration-report:
runs-on: ubuntu-24.04
Expand Down
Loading