Skip to content
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

chore: rewrite test workflow #1324

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Conversation

JP-Ellis
Copy link
Contributor

@JP-Ellis JP-Ellis commented Dec 8, 2024

The motivation for this is improve the speed at which the CI tasks complete in the Pact-JS repository. This hopefully achieves this by having more parallel builds which are each smaller and cached.

I have also reduced the reliance on the scripts (and the use of pre) as it appeared to me that they duplicate a number of steps. These duplications are justified when running locally to ensure all previous steps are run, but in CI it likely results in longer runs than necessary.

Ideally, I would like to reduce the reliance on the bash scripts, and make better use of the npm scripts section; with the bash scripts being used only when absolutely necessary.

@JP-Ellis JP-Ellis self-assigned this Dec 8, 2024
@JP-Ellis JP-Ellis force-pushed the chore/rewrite-test-workflow branch 2 times, most recently from 0e13e04 to 58a0949 Compare December 8, 2024 22:30
@JP-Ellis JP-Ellis marked this pull request as draft December 8, 2024 22:34
@JP-Ellis JP-Ellis force-pushed the chore/rewrite-test-workflow branch 8 times, most recently from 0d3e8a1 to f118eff Compare December 11, 2024 07:52
The motivation for this is improve the speed at which the CI tasks
complete in the Pact-JS repository. This hopefully achieves this by
having more parallel builds which are each smaller and cached.

I have also reduced the reliance on the scripts as it appeared to me
that they duplicate a number of steps. These duplications are justified
when running locally to ensure all previous steps are run, but in CI it
likely results in longer runs thhan necessary.

Signed-off-by: JP-Ellis <[email protected]>
Also move `devDependencies` into `dependencies` for examples.

Signed-off-by: JP-Ellis <[email protected]>
Signed-off-by: JP-Ellis <[email protected]>
Some of the recent updates have broken `ts-node`, but using `tsx` works
fine.

Signed-off-by: JP-Ellis <[email protected]>
@JP-Ellis JP-Ellis force-pushed the chore/rewrite-test-workflow branch 5 times, most recently from 772f3af to b532f34 Compare December 16, 2024 07:30
Instead of relying on `bash` (which may not be installed, such as in
alpine images), use POSIX bash.

Signed-off-by: JP-Ellis <[email protected]>
@JP-Ellis JP-Ellis force-pushed the chore/rewrite-test-workflow branch from b532f34 to b56f39a Compare December 16, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant