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
26 changes: 17 additions & 9 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
pull_request:
branches: [ master ]

# Supersede in-progress runs for the same ref instead of letting them pile up
# (mirrors apify/actor-scraper).
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
runs-on: ubuntu-latest
Expand All @@ -16,20 +22,22 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'npm'
# Pinned to 22 to match the production base image
# (apify/actor-node-playwright-firefox:22-*) and stay inside
# Playwright 1.46.0's supported Node matrix (18/20/22).
node-version: '22'

- name: Install dependencies
run: npm ci
- name: Install pnpm and dependencies
uses: apify/actions/pnpm-install@v1.1.2

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

- name: Lint
run: npm run lint
run: pnpm run lint

- name: Install Playwright
run: npx playwright install
- name: Install Playwright browsers
run: pnpm exec playwright install

- name: Test
run: npm run test
run: pnpm run test
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ input.json
INPUT.json

# Ghostery blockers (generated during build)
blockers/**
blockers/**

# Turbo cache
.turbo
14 changes: 14 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "independent",
"packages": ["packages/*"],
"command": {
"version": {
"conventionalCommits": true,
"createRelease": "github",
"message": "chore(release): release packages [skip ci]"
}
},
"useNx": false,
"npmClient": "pnpm",
"ignoreChanges": ["**/test/**", "**/tests/**", "**/*.md"]
}
Loading
Loading