-
Notifications
You must be signed in to change notification settings - Fork 91
refactor test organisation #2383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development/2.14
Are you sure you want to change the base?
Changes from all commits
29a2981
ecfdb45
ff2705e
fc09d00
afc9984
533d441
9ea64cf
a28ae0b
8ec4a09
b3fcf21
f76a226
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| name: Setup Node environment | ||
| description: > | ||
| Create a GitHub App token for private repo access, configure git, | ||
| set up Node.js with yarn cache, and install test dependencies. | ||
|
|
||
| inputs: | ||
| app-id: | ||
| description: GitHub App ID | ||
| required: true | ||
| private-key: | ||
| description: GitHub App private key | ||
| required: true | ||
| repositories: | ||
| description: Newline-separated list of private repositories to grant access to | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. before the refactor, each job explicitly requested only the repos it consumes:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I noticed this stuff, not sure it's super important, but yeah I removed the default value and re-add explicit repo list |
||
| required: true | ||
|
|
||
| outputs: | ||
| token: | ||
| description: The generated GitHub App token | ||
| value: ${{ steps.app-token.outputs.token }} | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Get token to access private repositories | ||
| uses: actions/create-github-app-token@v3 | ||
| id: app-token | ||
| with: | ||
| app-id: ${{ inputs.app-id }} | ||
| private-key: ${{ inputs.private-key }} | ||
| owner: ${{ github.repository_owner }} | ||
| repositories: ${{ inputs.repositories }} | ||
| - name: Configure GIT | ||
| shell: bash | ||
| run: | | ||
| git config --global url."https://x-access-token:${GIT_ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/" | ||
| git config --global --add url."https://x-access-token:${GIT_ACCESS_TOKEN}@github.com/".insteadOf "git@github.com:" | ||
| git config --global --add url."https://x-access-token:${GIT_ACCESS_TOKEN}@github.com/".insteadOf "ssh://git@github.com/" | ||
| env: | ||
| GIT_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }} | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: '24' | ||
| cache: yarn | ||
| cache-dependency-path: tests/functional/yarn.lock | ||
| - name: Install test dependencies | ||
| shell: bash | ||
| working-directory: tests/functional | ||
| run: >- | ||
| yarn install --frozen-lockfile --network-concurrency 1 || ( | ||
| yarn cache clean && yarn install --frozen-lockfile --network-concurrency 1 | ||
| ) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end2end.yaml file was like 700 lines, with like ~6 nodes setup so I think this is better