Skip to content

Commit 721d476

Browse files
committed
wush
1 parent e70d793 commit 721d476

File tree

1 file changed

+7
-72
lines changed

1 file changed

+7
-72
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ jobs:
313313
run: ./scripts/check_unstaged.sh
314314

315315
test-go:
316-
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'depot-macos-latest' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'depot-windows-2022-16' || matrix.os }}
316+
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'depot-macos-latest' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'depot-windows-2022-4' || matrix.os }}
317317
needs: changes
318318
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
319-
timeout-minutes: 20
319+
timeout-minutes: 90
320320
strategy:
321321
fail-fast: false
322322
matrix:
@@ -330,84 +330,19 @@ jobs:
330330
with:
331331
egress-policy: audit
332332

333-
- name: Checkout
334-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
335-
with:
336-
fetch-depth: 1
337-
338333
# Sets up the ImDisk toolkit for Windows and creates a RAM disk on drive R:.
339334
- name: Setup ImDisk
340335
if: runner.os == 'Windows'
341336
uses: ./.github/actions/setup-imdisk
342337

343-
- name: Download Go Build Cache
344-
id: download-go-build-cache
345-
uses: ./.github/actions/test-cache/download
338+
- name: Wush
346339
if: runner.os == 'Windows'
347-
with:
348-
key-prefix: test-go-build-11-${{ runner.os }}-${{ runner.arch }}
349-
cache-path: "/r/.cache/go-cache"
350-
351-
- name: Setup Go
352-
uses: ./.github/actions/setup-go
353-
with:
354-
build-cache-path: /r/.cache/go-cache
355-
cache: false
356-
357-
- name: Normalize File and Directory Timestamps
358340
shell: bash
359341
run: |
360-
find . -type f ! -path ./.git/\*\* | mtimehash
361-
find . -type d ! -path ./.git/\*\* -exec touch -t 200601010000 {} +
362-
363-
- name: Setup Terraform
364-
uses: ./.github/actions/setup-tf
365-
366-
- name: Download Test Cache
367-
id: download-cache
368-
uses: ./.github/actions/test-cache/download
369-
with:
370-
key-prefix: test-go-${{ runner.os }}-${{ runner.arch }}
371-
372-
# - name: Test with Mock Database
373-
# id: test
374-
# shell: bash
375-
# run: |
376-
# # if macOS, install google-chrome for scaletests. As another concern,
377-
# # should we really have this kind of external dependency requirement
378-
# # on standard CI?
379-
# if [ "${{ matrix.os }}" == "macos-latest" ]; then
380-
# brew install google-chrome
381-
# fi
382-
383-
# # By default Go will use the number of logical CPUs, which
384-
# # is a fine default.
385-
# PARALLEL_FLAG=""
386-
387-
# # macOS will output "The default interactive shell is now zsh"
388-
# # intermittently in CI...
389-
# if [ "${{ matrix.os }}" == "macos-latest" ]; then
390-
# touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
391-
# fi
392-
# export TS_DEBUG_DISCO=true
393-
# export GOCACHE=/r/.cache/go-cache/build
394-
# export GOMODCACHE=/r/.cache/go-cache/mod
395-
# echo "PATH: $PATH"
396-
# gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
397-
# --packages="./..." -- $PARALLEL_FLAG -short -failfast
398-
399-
- name: Upload Test Cache
400-
uses: ./.github/actions/test-cache/upload
401-
with:
402-
cache-key: ${{ steps.download-cache.outputs.cache-key }}
403-
404-
- name: Upload Go Build Cache
405-
if: runner.os == 'Windows'
406-
uses: ./.github/actions/test-cache/upload
407-
with:
408-
cache-key: ${{ steps.download-go-build-cache.outputs.cache-key }}-${{ github.run_id }}-${{ github.run_attempt }}
409-
cache-path: "/r/.cache/go-cache"
410-
override-condition: "true"
342+
curl -L -o wush.zip https://github.com/coder/wush/releases/download/v0.4.1/wush_0.4.1_windows_amd64.zip
343+
unzip -o wush.zip
344+
chmod +x wush.exe
345+
./wush.exe serve
411346
412347
# We don't run the full test-suite for Windows & MacOS, so we just run the CLI tests on every PR.
413348
# We run the test suite in test-go-pg, including CLI.

0 commit comments

Comments
 (0)