release: hydration@0.10.0-beta.1 #441
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
name: build | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: tests | |
env: | |
CI: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.8.0 | |
run_install: | | |
- recursive: false | |
- name: Build | |
run: pnpm build:all | |
- name: Tests | |
run: pnpm test | |
- name: Blog TS Check | |
run: pnpm blog:check | |
- name: Docs TS Check | |
run: pnpm docs:check | |
- name: Lint | |
run: pnpm lint:all | |
cypress: | |
name: cypress | |
needs: tests | |
env: | |
CI: true | |
runs-on: ubuntu-latest | |
container: cypress/included:9.2.0 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.8.0 | |
run_install: | | |
- recursive: false | |
- name: Build | |
run: pnpm build:all | |
- name: Build Docs Site | |
run: pnpm docs:build | |
- name: Cypress | |
run: pnpm -C docs run cy:run | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: docs/cypress/screenshots | |
retention-days: 1 | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-videos | |
path: docs/cypress/videos | |
retention-days: 1 | |
docs: | |
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'docs') | |
name: deploy docs | |
needs: tests | |
env: | |
BUILD_HOOK: ${{secrets.NETLIFY_DOCS_BUILD_HOOK}} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Netlify | |
run: 'curl -X POST -d {} $BUILD_HOOK' | |
blog: | |
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'blog') | |
name: deploy the-vue-point | |
needs: tests | |
env: | |
BUILD_HOOK: ${{secrets.NETLIFY_VUE_POINT_BUILD_HOOK}} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Netlify | |
run: 'curl -X POST -d {} $BUILD_HOOK' | |
crawl: | |
if: github.ref == 'refs/heads/main' && (contains(github.event.head_commit.message, 'docs') || startsWith(github.event.head_commit.message, 'crawl')) | |
name: crawl docs | |
needs: docs | |
env: | |
API_KEY: ${{secrets.ALGOLIA_API_KEY}} | |
APPLICATION_ID: GERZE019PN | |
runs-on: ubuntu-latest | |
container: algolia/docsearch-scraper | |
steps: | |
- name: Wait for Netlify deployment | |
uses: whatnick/wait-action@master | |
with: | |
time: '30s' | |
- uses: actions/checkout@v2 | |
- run: 'sudo apt-get install -y jq' | |
- run: 'echo "CONFIG=$(cat docs/.algolia/config.json | jq -r tostring)" >> $GITHUB_ENV' | |
- run: "cd /root && pipenv install" | |
- run: "cd /root && pipenv run python -m src.index" |