diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4db31afb4389..f75cdbb18c9f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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