From 60f2d79221488c9ecf817de2a79d7e7fb969f15e Mon Sep 17 00:00:00 2001 From: Grant Nelson Date: Tue, 25 Jun 2024 17:30:56 -0600 Subject: [PATCH] fixing problems --- .github/actions/setup-gopherjs/action.yml | 14 ++++---------- .github/workflows/ci.yaml | 11 +++-------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/actions/setup-gopherjs/action.yml b/.github/actions/setup-gopherjs/action.yml index 8e4cc00c3..96fdb29fa 100644 --- a/.github/actions/setup-gopherjs/action.yml +++ b/.github/actions/setup-gopherjs/action.yml @@ -48,17 +48,11 @@ runs: if: inputs.fixTemps == 'true' shell: bash run: | - echo "SOURCE_MAP_SUPPORT=false" >> $env:GITHUB_ENV + echo "SOURCE_MAP_SUPPORT=false" | Out-File -FilePath $env:GITHUB_ENV # see https://github.com/actions/runner-images/issues/712#issuecomment-613004302 - echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV - echo "TMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV - echo "TMPDIR=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV - export TEMP="%USERPROFILE%\AppData\Local\Temp" - export TMP="%USERPROFILE%\AppData\Local\Temp" - export TMPDIR="%USERPROFILE%\AppData\Local\Temp" - echo ::notice::$TEMP - echo ::notice::$TMP - echo ::notice::$TMPDIR + echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" | Out-File -FilePath $env:GITHUB_ENV + echo "TMP=$env:USERPROFILE\AppData\Local\Temp" | Out-File -FilePath $env:GITHUB_ENV + echo "TMPDIR=$env:USERPROFILE\AppData\Local\Temp" | Out-File -FilePath $env:GITHUB_ENV - name: Install GopherJS working-directory: ${{ env.GOPHERJS_PATH }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad31bfe4b..25fc60319 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -123,11 +123,9 @@ jobs: # Run all tests except gorepo tests. run: go test -v -race $(go list ./... | grep -v github.com/gopherjs/gopherjs/tests/gorepo) - todomvc_tests: - name: TodoMVC Tests + todomvc_check: + name: TodoMVC Check runs-on: ubuntu-latest - env: - TODOMVC_PATH: ${{ github.workspace }}/go/src/github.com/gopherjs/todomvc steps: - uses: actions/checkout@v4 with: @@ -138,10 +136,7 @@ jobs: uses: ./.github/actions/setup-gopherjs/ - name: Get TodoMVC repo working-directory: ${{ env.GOPHERJS_PATH }} - run: | - go get -v github.com/gopherjs/todomvc - ls -l $GOPATH/src/github.com/gopherjs - find ${{ github.workspace }} -type d -name todomvc + run: go get -v github.com/gopherjs/todomvc - name: Run TodoMVC tests working-directory: ${{ env.GOPHERJS_PATH }} run: gopherjs test -v github.com/gopherjs/todomvc/...