Skip to content

Commit

Permalink
attempt to understand gha
Browse files Browse the repository at this point in the history
  • Loading branch information
grantnelson-wf committed Jun 13, 2024
1 parent 76fb554 commit 53a4d1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,20 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- uses: actions/checkout@v3

- name: Fix TEMP variable
# Fix TEMP variable, see https://github.com/actions/runner-images/issues/712#issuecomment-613004302
run: |
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
- name: Set up environment
run: |
# Make nodejs able to require installed modules from any working path.
Expand All @@ -43,18 +47,22 @@ jobs:
echo ::notice::$(go version)
echo ::notice::$(node -v)
echo ::notice::$(npm -v)
- name: Build and Install GopherJS
run: |
go install -v
echo ::notice::$(gopherjs version)
- name: Smoke tests
run: |
gopherjs build -v net/http
gopherjs test -v --short fmt sort ./tests
- name: go test ...
run: |
$ErrorActionPreference = "Stop"
go test -v -race $(go list ./...)
- name: TodoMVC in GOPATH mode
run: |
$ErrorActionPreference = "Stop"
Expand All @@ -66,6 +74,7 @@ jobs:
go get -v github.com/gopherjs/todomvc
gopherjs build -v -o C:\tmp\todomvc_gopath.js github.com/gopherjs/todomvc
gopherjs test -v github.com/gopherjs/todomvc/...
- name: TodoMVC in Modules mode
run: |
$ErrorActionPreference = "Stop"
Expand Down

0 comments on commit 53a4d1f

Please sign in to comment.