Merge branch 'master' of github.com:gopherjs/gopherjs into gha #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows OS Test | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
permissions: | |
contents: read | |
env: | |
GO_VERSION: 1.19.13 | |
NODE_VERSION: 12 | |
SOURCE_MAP_SUPPORT: false | |
GOPATH: ${{ github.workspace }}/go | |
GOPHERJS_PATH: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} | |
# Fix TEMP variable, see https://github.com/actions/runner-images/issues/712#issuecomment-613004302 | |
TEMP: \%USERPROFILE%\AppData\Local\Temp | |
TMP: \%USERPROFILE%\AppData\Local\Temp | |
TMPDIR: \%USERPROFILE%\AppData\Local\Temp | |
jobs: | |
tests: | |
name: tests | |
runs-on: windows-latest | |
steps: | |
- 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: Set up environment | |
run: | | |
# Make nodejs able to require installed modules from any working path. | |
echo "NODE_PATH=$(npm root)" >> $GITHUB_ENV | |
echo ::notice::$(npm root) | |
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 | |