starting on macos #1
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: Mac 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 }} | |
jobs: | |
tests: | |
name: tests | |
runs-on: macos-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::$(go version) | |
echo ::notice::$(node -v) | |
echo ::notice::$(npm -v) | |
- name: Install required Node.js packages | |
# Extra flags to avoid installing node-syscall. | |
run: | | |
npm install --no-optional --no-package-lock | |
- 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 log os ./tests |