-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c188e0b
commit 725f429
Showing
4 changed files
with
125 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,59 +10,60 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: 18 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Enable corepack | ||
run: | | ||
corepack enable | ||
corepack prepare yarn@stable --activate | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Set git identity | ||
run: | | ||
git config --global user.name "Martin Adámek" | ||
git config --global user.email "[email protected]" | ||
- name: Enable corepack | ||
run: | | ||
corepack enable | ||
corepack prepare yarn@stable --activate | ||
- name: Build & deploy docs | ||
run: | | ||
# install project deps | ||
yarn | ||
# go to website dir | ||
cd website | ||
# install website deps | ||
yarn | ||
# build and deploy the docs | ||
yarn deploy | ||
env: | ||
GIT_USER: "B4nan:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}" | ||
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} | ||
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }} | ||
- name: Set git identity | ||
run: | | ||
git config --global user.name "Martin Adámek" | ||
git config --global user.email "[email protected]" | ||
- name: Build & deploy docs | ||
run: | | ||
# install project deps | ||
yarn | ||
# go to website dir | ||
cd website | ||
# install website deps | ||
yarn | ||
# build and deploy the docs | ||
yarn deploy | ||
env: | ||
GIT_USER: 'B4nan:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}' | ||
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} | ||
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }} | ||
|
||
squash: | ||
runs-on: ubuntu-latest | ||
needs: [ build ] | ||
needs: [build] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: 'gh-pages' | ||
fetch-depth: 0 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: 'gh-pages' | ||
fetch-depth: 0 | ||
|
||
- name: Set git identity | ||
run: | | ||
git config --global user.name "Martin Adámek" | ||
git config --global user.email "[email protected]" | ||
- name: Set git identity | ||
run: | | ||
git config --global user.name "Martin Adámek" | ||
git config --global user.email "[email protected]" | ||
- name: Squash all commits to reduce repository size | ||
run: | | ||
TOTAL_COMMITS="$(($(git rev-list --count HEAD)-1))" | ||
echo "squashing $TOTAL_COMMITS commits" | ||
git reset HEAD~$TOTAL_COMMITS | ||
git add . | ||
git commit --amend -m 'crawlee.dev docs' | ||
git push --force origin gh-pages | ||
env: | ||
GIT_USER: "B4nan:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}" | ||
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} | ||
- name: Squash all commits to reduce repository size | ||
run: | | ||
TOTAL_COMMITS="$(($(git rev-list --count HEAD)-1))" | ||
echo "squashing $TOTAL_COMMITS commits" | ||
git reset HEAD~$TOTAL_COMMITS | ||
git add . | ||
git commit --amend -m 'crawlee.dev docs' | ||
git push --force origin gh-pages | ||
env: | ||
GIT_USER: 'B4nan:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}' | ||
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,50 +15,53 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
storage: [ LOCAL, MEMORY, PLATFORM ] | ||
storage: [LOCAL, MEMORY, PLATFORM] | ||
|
||
steps: | ||
- name: Cancel Workflow Action | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Cancel Workflow Action | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Enable corepack | ||
run: | | ||
corepack enable | ||
corepack prepare yarn@stable --activate | ||
- name: Enable corepack | ||
run: | | ||
corepack enable | ||
corepack prepare yarn@stable --activate | ||
- uses: microsoft/playwright-github-action@v1 | ||
- name: Activate cache for Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
|
||
- name: Turbo cache | ||
id: turbo-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .turbo | ||
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} | ||
restore-keys: | | ||
turbo-${{ github.job }}-${{ github.ref_name }}- | ||
- uses: microsoft/playwright-github-action@v1 | ||
|
||
- name: Login to Apify | ||
run: npx -y apify-cli@beta login -t ${{ secrets.APIFY_SCRAPER_TESTS_API_TOKEN }} | ||
- name: Turbo cache | ||
id: turbo-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .turbo | ||
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} | ||
restore-keys: | | ||
turbo-${{ github.job }}-${{ github.ref_name }}- | ||
- name: Install Dependencies | ||
run: yarn | ||
- name: Login to Apify | ||
run: npx -y apify-cli@beta login -t ${{ secrets.APIFY_SCRAPER_TESTS_API_TOKEN }} | ||
|
||
- name: Build | ||
run: yarn ci:build | ||
- name: Install Dependencies | ||
run: yarn | ||
|
||
- name: Test with storage ${{ matrix.storage }} | ||
run: yarn test:e2e | ||
env: | ||
STORAGE_IMPLEMENTATION: ${{ matrix.storage }} | ||
- name: Build | ||
run: yarn ci:build | ||
|
||
- name: Test with storage ${{ matrix.storage }} | ||
run: yarn test:e2e | ||
env: | ||
STORAGE_IMPLEMENTATION: ${{ matrix.storage }} |