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 }}
BRANCH_NAME: ${{ github.ref_name }}
Comment on lines +111 to +113

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.

do we need to list PRs from bash script?
can't we use an if condition, something like:

Suggested change
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: ${{ github.ref_name }}
`if: ${{ contains(github.event.pull_request.labels.*.name, 'skip-async-migration' }}`

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.

esp. check would fail if PR is not opened...

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.

thinking on it: maybe both these refactoring checks should ONLY be performed on PR event (not on push), so they check only the code we modify and don't force people to add reformatting/... in waterflow branches?

run: |
if gh pr list --head "$BRANCH_NAME" --state open --json labels \
--jq '.[].labels[].name' 2>/dev/null | grep -qx '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