Skip to content

chore(gitpod): use custom image #8033

chore(gitpod): use custom image

chore(gitpod): use custom image #8033

Workflow file for this run

name: publish-docs
on:
push:
branches:
- '**'
- '!gh-pages'
pull_request:
branches:
- 'main'
env:
NODE_VERSION: 16.18.0 # renovate: datasource=node depName=node
PYTHON_VERSION: 3.10.8 # renovate: datasource=github-releases depName=python packageName=containerbase/python-prebuild
# Don't use PIPENV_VERSION: https://github.com/pypa/pipenv/issues/3633#issuecomment-478250721
RENOVATE_PIPENV_VERSION: 2022.10.12 # renovate: datasource=pypi depName=pipenv
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # tag=v4.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pipenv'
- name: Init platform
run: |
git config --global core.autocrlf false
git config --global core.symlinks true
git config --global user.email 'bot@renovateapp.com'
git config --global user.name 'Renovate Bot'
python --version
pip install pipenv==${{ env.RENOVATE_PIPENV_VERSION }}
pipenv --version
- name: Installing dependencies
run: make install
- name: Run Prettier
run: yarn prettier
- name: Run shellcheck
uses: reviewdog/action-shellcheck@66c9a47bf02255b250284a82251cb4cadf5043f5 # tag=v1.15.0
with:
reporter: github-pr-review
filter_mode: nofilter
path: |
bin
.husky
pattern: '*.sh'
check_all_files_with_shebangs: 'true'
- name: Prepare docs
run: make prepare
- name: Build cache decoder
run: make build-decoder
- name: Build docs
run: make build-docs
- name: Upload site artifacts
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # tag=v3.1.1
with:
name: site
path: site/
if-no-files-found: error
- name: Cypress run
uses: cypress-io/github-action@30008f1458a5a2c97054bfe118fe33d75976c482 # tag=v4.2.0
with:
start: make serve
wait-on: 'http://127.0.0.1:8000/'
# we have already installed all dependencies above
install: false
timeout-minutes: 3
- name: Upload cypress artifacts
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # tag=v3.1.1
if: always()
with:
name: cypress
path: |
cypress/videos/
cypress/screenshots/
if-no-files-found: error
- name: Publish docs
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: make deploy