Skip to content

ci: add tests#234

Merged
ruocco-l merged 9 commits into
masterfrom
ci/add-tests
Feb 19, 2026
Merged

ci: add tests#234
ruocco-l merged 9 commits into
masterfrom
ci/add-tests

Conversation

@ruocco-l

@ruocco-l ruocco-l commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #218

There was an initial problem with some leftover from the transfer from apify-sdk-js with references to apify/src. I removed them and added apify as a dev dependency.

Another problem was due to a misnomer of actor-sitemap-scraper which is now actor-sitemap-extractor. Not really sure what's going on there, npm i took care of everything 😅 This will enable the e2e tests

I copied the workflow from apify-sdk-js. I removed the parts that didn't make sense for me (like the multiple node version testings) but feel free to comment on them and educate me, I'm very new to GH actions.

@ruocco-l ruocco-l self-assigned this Feb 17, 2026
@ruocco-l ruocco-l marked this pull request as ready for review February 17, 2026 09:58

@barjin barjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @ruocco-l , I only have a few minute ideas, nothing really blocking:

Comment thread .github/workflows/on-pull-request.yml Outdated

- name: Install Dependencies
run: |
npm ci --force

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

--force sounds scary, why is it needed here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it was like this in apify-sdk-js, i just assumed it was the way to go, I agree to remove it 👍

Comment thread CODEOWNERS Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can probably scrap this whole file (it's empty atm)

Comment thread .github/workflows/on-pull-request.yml Outdated
Comment on lines +14 to +17
- name: Cancel Workflow Action
uses: styfle/cancel-workflow-action@0.13.0
with:
access_token: ${{ github.token }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we can replace this with a native concurrency clause? (docs)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Oh so they are the same thing! The package also mention it but I left it in because maybe there was something I didn't know was doing 😅 I'll change it!

@ruocco-l

Copy link
Copy Markdown
Collaborator Author

@ruocco-l ruocco-l requested a review from barjin February 19, 2026 11:18

@nikitachapovskii-dev nikitachapovskii-dev left a comment

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.

Looks good to me.

Comment thread .github/workflows/on-pull-request.yml Outdated
cache-dependency-path: 'package-lock.json'

- name: Install Dependencies
run: npm ci --force

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.

Hey just a quick note: npm ci --force is still used in Lint. I think we should align it with build & test as @barjin noticed

@barjin barjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one last comment, otherwise lgtm 👍 thanks!

Comment thread package.json Outdated
Comment on lines 43 to 44
"test:e2e": "npm run test:e2e:scrapers",
"test:e2e:scrapers": "node test/e2e/runScraperTests.mjs",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe we can drop the :scrapers script, as it's the same as e2e?

@ruocco-l ruocco-l merged commit 662c33a into master Feb 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add & fix CI tests

4 participants