Skip to content
Open
Show file tree
Hide file tree
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
21 changes: 8 additions & 13 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
cache-dependency-path: 'package-lock.json'

- name: Install Dependencies
run: |
npm ci
- name: Install pnpm and dependencies
uses: apify/workflows/pnpm-install@main

- name: Build
run: npm run ci:build
run: pnpm ci:build

- name: Tests
run: npm test
run: pnpm test

lint:
name: Lint
Expand All @@ -46,14 +43,12 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
cache-dependency-path: 'package-lock.json'

- name: Install Dependencies
run: npm ci
- name: Install pnpm and dependencies
uses: apify/workflows/pnpm-install@main

- name: ESLint
run: npm run lint
run: pnpm lint

- name: Prettier
run: npm run format:check
run: pnpm format:check
11 changes: 4 additions & 7 deletions .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- cron: '0 2 * * *'

jobs:
# NPM install is done in a separate job and cached to speed up the following jobs.
build_and_test:
name: Build & Test
runs-on: ubuntu-22.04
Expand All @@ -28,8 +27,6 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
cache-dependency-path: 'package-lock.json'

- name: Turbo cache
id: turbo-cache
Expand All @@ -40,13 +37,13 @@ jobs:
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-

- name: Install Dependencies
run: npm ci
- name: Install pnpm and dependencies
uses: apify/workflows/pnpm-install@main

- name: Build
run: npm run ci:build
run: pnpm ci:build

- name: Test
run: npm run test:e2e
run: pnpm test:e2e
env:
APIFY_TOKEN: ${{ secrets.APIFY_SCRAPER_TESTS_API_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pids
.idea
.vscode
yarn.lock
.yarn
tmp
jsconfig.json
types
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx lint-staged
pnpm exec lint-staged
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.husky/pre-commit
.prettierignore

# pnpm
pnpm-lock.yaml
pnpm-workspace.yaml
1 change: 1 addition & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
}
},
"useNx": false,
"npmClient": "pnpm",
"ignoreChanges": ["**/test/**", "**/*.md"]
}
Loading
Loading