Skip to content

Commit a6dc08d

Browse files
authored
Update to Vitepress (#198)
* Initial vitepress migration. * Manual update steps. Add an unsupported warning. * Make sure vitepress deps are devDeps. * Update vitepress and theme to latest versions. * Update netlify.toml patterns. * Update path to from source install insructions and update vitepress-theme-default-plus. * Update docs build. * Checklinks. * Try 'dual booting' yarn and npm. * Update fully to npm. * Update node requirement. * Update dependency install. * Further unsupported clarification. * Add @babel/eslint-parser. * Refresh package-lock. * Try new pr-linter workflow.
1 parent f00c48d commit a6dc08d

26 files changed

+2194
-5635
lines changed

.github/workflows/pr-basic-tests.yml

+28-44
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
TERM: xterm
1111
strategy:
1212
matrix:
13-
leia-tests:
13+
leia-test:
1414
- examples/basics
15-
lando-versions:
16-
- edge
15+
lando-version:
16+
- 3-dev-slim
1717
os:
1818
- ubuntu-22.04
1919
node-version:
20-
- '16'
20+
- '18'
2121

2222
steps:
2323
# Install deps and cache
@@ -27,43 +27,27 @@ jobs:
2727
uses: actions/setup-node@v2
2828
with:
2929
node-version: ${{ matrix.node-version }}
30-
cache: yarn
31-
- name: Install Yarn dependencies
32-
run: yarn install --prefer-offline --frozen-lockfile
33-
34-
# This block should eventually become use lando/actions-hyperdrive@v2
35-
- name: Verify Docker dependencies
36-
run: |
37-
docker --version | grep "20.10."
38-
docker-compose --version | grep "1.29."
39-
- name: Grab latest edge Lando CLI
40-
run: |
41-
sudo curl -fsSL -o /usr/local/bin/lando "https://files.lando.dev/cli/lando-linux-x64-${{ matrix.lando-versions }}"
42-
sudo chmod +x /usr/local/bin/lando
43-
- name: Move in lando config appropriate for testing
44-
run: |
45-
mkdir -p ~/.lando/cache
46-
cp -f actions-lando-config.yml ~/.lando/config.yml
47-
echo false > ~/.lando/cache/report_errors
48-
lando --clear
49-
- name: Verify Lando works and we are dogfooding this plugin for tests
50-
run: |
51-
lando version
52-
lando config --path plugins | grep platformsh | grep /home/runner/work/platformsh/platformsh || (echo "::error:: Not dogfooding this plugin correctly!" && exit 1)
53-
cd ${{ matrix.leia-tests }}
54-
lando config --path plugins | grep platformsh | grep dir | grep /home/runner/work/platformsh/platformsh || (echo "::error:: Not dogfooding this plugin correctly!" && exit 1)
55-
56-
# This block should eventually become use lando/actions-leia@v2
57-
# @NOTE? Do we want a way for our leia-action to configure apparmor since
58-
# this might break a whole bunch of tests? or is this literally just a thing
59-
# for the platform.sh mysql/mariadb container?
60-
- name: Configure apparmor
61-
run: |
62-
set -x
63-
sudo apt-get remove mysql-server --purge
64-
sudo apt-get install apparmor-profiles
65-
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
66-
- name: Run leia tests
67-
shell: bash
68-
run: yarn leia "./${{ matrix.leia-tests }}/README.md" -c 'Destroy tests' --stdin --shell bash
69-
30+
cache: npm
31+
- name: Install NPM dependencies
32+
run: npm clean-install --production --prefer-offline --frozen-lockfile
33+
- name: Bundle Deps
34+
uses: lando/prepare-release-action@v3
35+
with:
36+
lando-plugin: true
37+
version: dev
38+
sync: false
39+
- name: Setup lando ${{ matrix.lando-version }}
40+
uses: lando/setup-lando@v2
41+
with:
42+
lando-version: ${{ matrix.lando-version }}
43+
config: |
44+
setup.skipCommonPlugins=true
45+
setup.plugins.@lando/platformsh=/home/runner/work/platformsh/platformsh
46+
telemetry: false
47+
- name: Run Leia Tests
48+
uses: lando/run-leia-action@v2
49+
with:
50+
leia-test: "./${{ matrix.leia-test }}/README.md"
51+
cleanup-header: "Destroy tests"
52+
shell: bash
53+
stdin: true

.github/workflows/pr-chrome-headless-tests.yml

+29-44
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ on:
44
pull_request:
55

66
jobs:
7-
leia-tests:
7+
leia-test:
88
runs-on: ${{ matrix.os }}
99
env:
1010
TERM: xterm
1111
strategy:
1212
matrix:
13-
leia-tests:
13+
leia-test:
1414
- examples/chrome-headless-73
15-
lando-versions:
16-
- edge
15+
lando-version:
16+
- 3-dev-slim
1717
os:
1818
- ubuntu-22.04
1919
node-version:
20-
- '16'
20+
- '18'
2121

2222
steps:
2323
# Install deps and cache
@@ -27,43 +27,28 @@ jobs:
2727
uses: actions/setup-node@v2
2828
with:
2929
node-version: ${{ matrix.node-version }}
30-
cache: yarn
31-
- name: Install Yarn dependencies
32-
run: yarn install --prefer-offline --frozen-lockfile
33-
34-
# This block should eventually become use lando/actions-hyperdrive@v2
35-
- name: Verify Docker dependencies
36-
run: |
37-
docker --version | grep "20.10."
38-
docker-compose --version | grep "1.29."
39-
- name: Grab latest edge Lando CLI
40-
run: |
41-
sudo curl -fsSL -o /usr/local/bin/lando "https://files.lando.dev/cli/lando-linux-x64-${{ matrix.lando-versions }}"
42-
sudo chmod +x /usr/local/bin/lando
43-
- name: Move in lando config appropriate for testing
44-
run: |
45-
mkdir -p ~/.lando/cache
46-
cp -f actions-lando-config.yml ~/.lando/config.yml
47-
echo false > ~/.lando/cache/report_errors
48-
lando --clear
49-
- name: Verify Lando works and we are dogfooding this plugin for tests
50-
run: |
51-
lando version
52-
lando config --path plugins | grep platformsh | grep /home/runner/work/platformsh/platformsh || (echo "::error:: Not dogfooding this plugin correctly!" && exit 1)
53-
cd ${{ matrix.leia-tests }}
54-
lando config --path plugins | grep platformsh | grep dir | grep /home/runner/work/platformsh/platformsh || (echo "::error:: Not dogfooding this plugin correctly!" && exit 1)
55-
56-
# This block should eventually become use lando/actions-leia@v2
57-
# @NOTE? Do we want a way for our leia-action to configure apparmor since
58-
# this might break a whole bunch of tests? or is this literally just a thing
59-
# for the platform.sh mysql/mariadb container?
60-
- name: Configure apparmor
61-
run: |
62-
set -x
63-
sudo apt-get remove mysql-server --purge
64-
sudo apt-get install apparmor-profiles
65-
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
66-
- name: Run leia tests
67-
shell: bash
68-
run: yarn leia "./${{ matrix.leia-tests }}/README.md" -c 'Destroy tests' --stdin --shell bash
30+
cache: npm
31+
- name: Install NPM dependencies
32+
run: npm clean-install --production --prefer-offline --frozen-lockfile
6933

34+
- name: Bundle Deps
35+
uses: lando/prepare-release-action@v3
36+
with:
37+
lando-plugin: true
38+
version: dev
39+
sync: false
40+
- name: Setup lando ${{ matrix.lando-version }}
41+
uses: lando/setup-lando@v2
42+
with:
43+
lando-version: ${{ matrix.lando-version }}
44+
config: |
45+
setup.skipCommonPlugins=true
46+
setup.plugins.@lando/platformsh=/home/runner/work/platformsh/platformsh
47+
telemetry: false
48+
- name: Run Leia Tests
49+
uses: lando/run-leia-action@v2
50+
with:
51+
leia-test: "./${{ matrix.leia-test }}/README.md"
52+
cleanup-header: "Destroy tests"
53+
shell: bash
54+
stdin: true

.github/workflows/pr-drupal8-sync-tests.yml

+29-42
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ on:
44
pull_request:
55

66
jobs:
7-
leia-tests:
7+
leia-test:
88
runs-on: ${{ matrix.os }}
99
env:
1010
TERM: xterm
1111
PLATFORMSH_CLI_TOKEN: ${{ secrets.PLATFORMSH_CLI_TOKEN }}
1212
strategy:
1313
matrix:
14-
leia-tests:
14+
leia-test:
1515
- examples/drupal8-sync
16-
lando-versions:
17-
- edge
16+
lando-version:
17+
- 3-dev-slim
1818
os:
1919
- ubuntu-22.04
2020
node-version:
21-
- '16'
21+
- '18'
2222

2323
steps:
2424
# Install deps and cache
@@ -28,40 +28,27 @@ jobs:
2828
uses: actions/setup-node@v2
2929
with:
3030
node-version: ${{ matrix.node-version }}
31-
cache: yarn
32-
- name: Install Yarn dependencies
33-
run: yarn install --prefer-offline --frozen-lockfile
34-
35-
# This block should eventually become use lando/actions-hyperdrive@v2
36-
- name: Verify Docker dependencies
37-
run: |
38-
docker --version | grep "20.10."
39-
docker-compose --version | grep "1.29."
40-
- name: Grab latest edge Lando CLI
41-
run: |
42-
sudo curl -fsSL -o /usr/local/bin/lando "https://files.lando.dev/cli/lando-linux-x64-${{ matrix.lando-versions }}"
43-
sudo chmod +x /usr/local/bin/lando
44-
- name: Move in lando config appropriate for testing
45-
run: |
46-
mkdir -p ~/.lando/cache
47-
cp -f actions-lando-config.yml ~/.lando/config.yml
48-
echo false > ~/.lando/cache/report_errors
49-
lando --clear
50-
- name: Verify Lando works and we are dogfooding this plugin for tests
51-
run: |
52-
lando version
53-
lando config --path plugins | grep platformsh | grep /home/runner/work/platformsh/platformsh || (echo "::error:: Not dogfooding this plugin correctly!" && exit 1)
54-
55-
# This block should eventually become use lando/actions-leia@v2
56-
# @NOTE? Do we want a way for our leia-action to configure apparmor since
57-
# this might break a whole bunch of tests? or is this literally just a thing
58-
# for the platform.sh mysql/mariadb container?
59-
- name: Configure apparmor
60-
run: |
61-
set -x
62-
sudo apt-get remove mysql-server --purge
63-
sudo apt-get install apparmor-profiles
64-
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
65-
- name: Run leia tests
66-
shell: bash
67-
run: yarn leia "./${{ matrix.leia-tests }}/README.md" -c 'Destroy tests' --stdin --shell bash
31+
cache: npm
32+
- name: Install NPM dependencies
33+
run: npm clean-install --production --prefer-offline --frozen-lockfile
34+
- name: Bundle Deps
35+
uses: lando/prepare-release-action@v3
36+
with:
37+
lando-plugin: true
38+
version: dev
39+
sync: false
40+
- name: Setup lando ${{ matrix.lando-version }}
41+
uses: lando/setup-lando@v2
42+
with:
43+
lando-version: ${{ matrix.lando-version }}
44+
config: |
45+
setup.skipCommonPlugins=true
46+
setup.plugins.@lando/platformsh=/home/runner/work/platformsh/platformsh
47+
telemetry: false
48+
- name: Run Leia Tests
49+
uses: lando/run-leia-action@v2
50+
with:
51+
leia-test: "./${{ matrix.leia-test }}/README.md"
52+
cleanup-header: "Destroy tests"
53+
shell: bash
54+
stdin: true

.github/workflows/pr-linter.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ jobs:
1111
os:
1212
- ubuntu-22.04
1313
node-version:
14-
- '16'
14+
- '18'
1515
steps:
1616
# Install deps and cache
1717
- name: Checkout code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919
- name: Install node ${{ matrix.node-version }}
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
2121
with:
2222
node-version: ${{ matrix.node-version }}
23-
cache: yarn
24-
- name: Install Yarn dependencies
25-
run: yarn install --prefer-offline --frozen-lockfile
23+
cache: npm
24+
- name: Install NPM dependencies
25+
run: npm clean-install --prefer-offline --frozen-lockfile
2626

2727
# Run the linter
2828
- name: Run code linter
29-
run: yarn lint
29+
run: npm run lint

.github/workflows/pr-mariadb-tests.yml

+29-44
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ on:
44
pull_request:
55

66
jobs:
7-
leia-tests:
7+
leia-test:
88
runs-on: ${{ matrix.os }}
99
env:
1010
TERM: xterm
1111
strategy:
1212
matrix:
13-
leia-tests:
13+
leia-test:
1414
- examples/mariadb-10.0
1515
- examples/mariadb-10.1
1616
- examples/mariadb-10.2
1717
- examples/mariadb-10.3
1818
- examples/mariadb-10.4
1919
# This is known to not work and uses a later image
2020
# - examples/mariadb-10.5
21-
lando-versions:
22-
- edge
21+
lando-version:
22+
- 3-dev-slim
2323
os:
2424
- ubuntu-22.04
2525
node-version:
26-
- '16'
26+
- '18'
2727

2828
steps:
2929
# Install deps and cache
@@ -33,43 +33,28 @@ jobs:
3333
uses: actions/setup-node@v2
3434
with:
3535
node-version: ${{ matrix.node-version }}
36-
cache: yarn
37-
- name: Install Yarn dependencies
38-
run: yarn install --prefer-offline --frozen-lockfile
39-
40-
# This block should eventually become use lando/actions-hyperdrive@v2
41-
- name: Verify Docker dependencies
42-
run: |
43-
docker --version | grep "20.10."
44-
docker-compose --version | grep "1.29."
45-
- name: Grab latest edge Lando CLI
46-
run: |
47-
sudo curl -fsSL -o /usr/local/bin/lando "https://files.lando.dev/cli/lando-linux-x64-${{ matrix.lando-versions }}"
48-
sudo chmod +x /usr/local/bin/lando
49-
- name: Move in lando config appropriate for testing
50-
run: |
51-
mkdir -p ~/.lando/cache
52-
cp -f actions-lando-config.yml ~/.lando/config.yml
53-
echo false > ~/.lando/cache/report_errors
54-
lando --clear
55-
- name: Verify Lando works and we are dogfooding this plugin for tests
56-
run: |
57-
lando version
58-
lando config --path plugins | grep platformsh | grep /home/runner/work/platformsh/platformsh || (echo "::error:: Not dogfooding this plugin correctly!" && exit 1)
59-
cd ${{ matrix.leia-tests }}
60-
lando config --path plugins | grep platformsh | grep dir | grep /home/runner/work/platformsh/platformsh || (echo "::error:: Not dogfooding this plugin correctly!" && exit 1)
61-
62-
# This block should eventually become use lando/actions-leia@v2
63-
# @NOTE? Do we want a way for our leia-action to configure apparmor since
64-
# this might break a whole bunch of tests? or is this literally just a thing
65-
# for the platform.sh mysql/mariadb container?
66-
- name: Configure apparmor
67-
run: |
68-
set -x
69-
sudo apt-get remove mysql-server --purge
70-
sudo apt-get install apparmor-profiles
71-
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
72-
- name: Run leia tests
73-
shell: bash
74-
run: yarn leia "./${{ matrix.leia-tests }}/README.md" -c 'Destroy tests' --stdin --shell bash
36+
cache: npm
37+
- name: Install NPM dependencies
38+
run: npm clean-install --production --prefer-offline --frozen-lockfile
7539

40+
- name: Bundle Deps
41+
uses: lando/prepare-release-action@v3
42+
with:
43+
lando-plugin: true
44+
version: dev
45+
sync: false
46+
- name: Setup lando ${{ matrix.lando-version }}
47+
uses: lando/setup-lando@v2
48+
with:
49+
lando-version: ${{ matrix.lando-version }}
50+
config: |
51+
setup.skipCommonPlugins=true
52+
setup.plugins.@lando/platformsh=/home/runner/work/platformsh/platformsh
53+
telemetry: false
54+
- name: Run Leia Tests
55+
uses: lando/run-leia-action@v2
56+
with:
57+
leia-test: "./${{ matrix.leia-test }}/README.md"
58+
cleanup-header: "Destroy tests"
59+
shell: bash
60+
stdin: true

0 commit comments

Comments
 (0)