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: Split test and lint scripts #297

Merged
merged 3 commits into from Aug 24, 2021
Merged

chore: Split test and lint scripts #297

merged 3 commits into from Aug 24, 2021

Conversation

karfau
Copy link
Member

@karfau karfau commented Aug 23, 2021

To fix #111 I think it's good enough to split test and lint into two different build steps.
Separate actions are not required since the github actions details view now shows what steps failed.
image

To be able to do that split, I needed to drop the execution of the lint script from the test script. The start script still runs both in watch mode, so it's still easy to run both when developing.

@karfau karfau requested a review from brodybits August 23, 2021 20:35
To fix #111 I think it's good enough to split test and lint into two different build steps.
Separate actions are not required since the github actions details view now shows what steps failed.

To be able to do that split, I needed to drop the execution of the `lint` script from the `test` script. The `start` script still runs both in watch mode, so it's still easy to run both when developing.
Copy link
Member

@brodybits brodybits left a comment

Choose a reason for hiding this comment

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

It looks to me like npm-run-all is no longer needed and should be removed ?

@karfau
Copy link
Member Author

karfau commented Aug 24, 2021

@brodybits you are right, I dropped it, quite some reduction on devDependencies side

$ npm rm npm-run-all
removed 49 packages, updated 5 packages and audited 600 packages in 12.223s

@karfau karfau requested a review from brodybits August 24, 2021 17:59
Copy link
Member

@brodybits brodybits left a comment

Choose a reason for hiding this comment

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

LGTM overall

@@ -28,4 +28,6 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm cit
- run: npm ci --no-audit
Copy link
Member

Choose a reason for hiding this comment

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

minor question: Can you quickly describe the motivation behind adding --no-audit here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes:
a) (Since we have tools to provide update PRs) nobody is looking at the audit output on CI
b) it saves time to not do it

@karfau karfau merged commit 6cc16a6 into master Aug 24, 2021
@karfau karfau deleted the split-test-and-lint branch August 24, 2021 18:19
@brodybits
Copy link
Member

@karfau it looks like this broke the Stryker run in master ... definitely not the first time we hit this kind of thing.

I am wondering if using Stryker Jest runner, as I tried in PR #208, could help avoid this failure.

I am thinking now if we could find a way to add another task to check that Stryker can do its initial run in the future PRs?

@karfau
Copy link
Member Author

karfau commented Aug 24, 2021

I am thinking now if we could find a way to add another task to check that Stryker can do its initial run in the future PRs?

Yes, also thought about this, but I couldn't find any documentation about such a "dryrun" mode yet.

Update: I filed stryker-mutator/stryker-js#3088

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.

keep lint in separate GitHub action
2 participants