Skip to content

Commit

Permalink
Disable e2e temporarily
Browse files Browse the repository at this point in the history
To get CI running faster for testing.
  • Loading branch information
code-asher committed Sep 27, 2023
1 parent 2bb51a2 commit 4334f9e
Showing 1 changed file with 141 additions and 141 deletions.
282 changes: 141 additions & 141 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,144 +286,144 @@ jobs:
name: npm-package
path: ./package.tar.gz

test-e2e:
name: Run e2e tests
needs: build
runs-on: ubuntu-20.04
timeout-minutes: 25
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Install system dependencies
run: sudo apt update && sudo apt install -y libkrb5-dev

- name: Install Node.js v18
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Fetch dependencies from cache
id: cache-node-modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-build-
- name: Download npm package
uses: actions/download-artifact@v3
with:
name: npm-package

- name: Decompress npm package
run: tar -xzf package.tar.gz

- name: Install release package dependencies
run: cd release && npm install --unsafe-perm --omit=dev

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile

- name: Install Playwright OS dependencies
run: |
./test/node_modules/.bin/playwright install-deps
./test/node_modules/.bin/playwright install
- name: Run end-to-end tests
run: CODE_SERVER_TEST_ENTRY=./release yarn test:e2e

- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: failed-test-videos
path: ./test/test-results

- name: Remove release packages and test artifacts
run: rm -rf ./release ./test/test-results

test-e2e-proxy:
name: Run e2e tests behind proxy
needs: build
runs-on: ubuntu-20.04
timeout-minutes: 25
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Install system dependencies
run: sudo apt update && sudo apt install -y libkrb5-dev

- name: Install Node.js v18
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Fetch dependencies from cache
id: cache-node-modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-build-
- name: Download npm package
uses: actions/download-artifact@v3
with:
name: npm-package

- name: Decompress npm package
run: tar -xzf package.tar.gz

- name: Install release package dependencies
run: cd release && npm install --unsafe-perm --omit=dev

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile

- name: Install Playwright OS dependencies
run: |
./test/node_modules/.bin/playwright install-deps
./test/node_modules/.bin/playwright install
- name: Cache Caddy
uses: actions/cache@v3
id: caddy-cache
with:
path: |
~/.cache/caddy
key: cache-caddy-2.5.2

- name: Install Caddy
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: steps.caddy-cache.outputs.cache-hit != 'true'
run: |
gh release download v2.5.2 --repo caddyserver/caddy --pattern "caddy_2.5.2_linux_amd64.tar.gz"
mkdir -p ~/.cache/caddy
tar -xzf caddy_2.5.2_linux_amd64.tar.gz --directory ~/.cache/caddy
- name: Start Caddy
run: sudo ~/.cache/caddy/caddy start --config ./ci/Caddyfile

- name: Run end-to-end tests
run: CODE_SERVER_TEST_ENTRY=./release yarn test:e2e:proxy --global-timeout 840000

- name: Stop Caddy
if: always()
run: sudo ~/.cache/caddy/caddy stop --config ./ci/Caddyfile

- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: failed-test-videos-proxy
path: ./test/test-results

- name: Remove release packages and test artifacts
run: rm -rf ./release ./test/test-results
# test-e2e:
# name: Run e2e tests
# needs: build
# runs-on: ubuntu-20.04
# timeout-minutes: 25
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3

# - name: Install system dependencies
# run: sudo apt update && sudo apt install -y libkrb5-dev

# - name: Install Node.js v18
# uses: actions/setup-node@v3
# with:
# node-version: "18"

# - name: Fetch dependencies from cache
# id: cache-node-modules
# uses: actions/cache@v3
# with:
# path: "**/node_modules"
# key: yarn-build-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# yarn-build-

# - name: Download npm package
# uses: actions/download-artifact@v3
# with:
# name: npm-package

# - name: Decompress npm package
# run: tar -xzf package.tar.gz

# - name: Install release package dependencies
# run: cd release && npm install --unsafe-perm --omit=dev

# - name: Install dependencies
# if: steps.cache-node-modules.outputs.cache-hit != 'true'
# run: SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile

# - name: Install Playwright OS dependencies
# run: |
# ./test/node_modules/.bin/playwright install-deps
# ./test/node_modules/.bin/playwright install

# - name: Run end-to-end tests
# run: CODE_SERVER_TEST_ENTRY=./release yarn test:e2e

# - name: Upload test artifacts
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: failed-test-videos
# path: ./test/test-results

# - name: Remove release packages and test artifacts
# run: rm -rf ./release ./test/test-results

# test-e2e-proxy:
# name: Run e2e tests behind proxy
# needs: build
# runs-on: ubuntu-20.04
# timeout-minutes: 25
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3

# - name: Install system dependencies
# run: sudo apt update && sudo apt install -y libkrb5-dev

# - name: Install Node.js v18
# uses: actions/setup-node@v3
# with:
# node-version: "18"

# - name: Fetch dependencies from cache
# id: cache-node-modules
# uses: actions/cache@v3
# with:
# path: "**/node_modules"
# key: yarn-build-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# yarn-build-

# - name: Download npm package
# uses: actions/download-artifact@v3
# with:
# name: npm-package

# - name: Decompress npm package
# run: tar -xzf package.tar.gz

# - name: Install release package dependencies
# run: cd release && npm install --unsafe-perm --omit=dev

# - name: Install dependencies
# if: steps.cache-node-modules.outputs.cache-hit != 'true'
# run: SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile

# - name: Install Playwright OS dependencies
# run: |
# ./test/node_modules/.bin/playwright install-deps
# ./test/node_modules/.bin/playwright install

# - name: Cache Caddy
# uses: actions/cache@v3
# id: caddy-cache
# with:
# path: |
# ~/.cache/caddy
# key: cache-caddy-2.5.2

# - name: Install Caddy
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# if: steps.caddy-cache.outputs.cache-hit != 'true'
# run: |
# gh release download v2.5.2 --repo caddyserver/caddy --pattern "caddy_2.5.2_linux_amd64.tar.gz"
# mkdir -p ~/.cache/caddy
# tar -xzf caddy_2.5.2_linux_amd64.tar.gz --directory ~/.cache/caddy

# - name: Start Caddy
# run: sudo ~/.cache/caddy/caddy start --config ./ci/Caddyfile

# - name: Run end-to-end tests
# run: CODE_SERVER_TEST_ENTRY=./release yarn test:e2e:proxy --global-timeout 840000

# - name: Stop Caddy
# if: always()
# run: sudo ~/.cache/caddy/caddy stop --config ./ci/Caddyfile

# - name: Upload test artifacts
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: failed-test-videos-proxy
# path: ./test/test-results

# - name: Remove release packages and test artifacts
# run: rm -rf ./release ./test/test-results

0 comments on commit 4334f9e

Please sign in to comment.