Merge pull request #654 from Hakkin/SetGlobalObject #409
This file contains hidden or 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
| on: [push, pull_request] | |
| name: Test | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: [1.20.x, 1.x] | |
| os: [ubuntu-latest] | |
| arch: ["", "386"] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Check formatting | |
| run: diff -u <(echo -n) <(gofmt -d .) | |
| if: ${{ matrix.go-version == '1.x' }} | |
| - name: Run go vet | |
| run: go vet ./... | |
| - name: Run staticcheck | |
| uses: dominikh/[email protected] | |
| with: | |
| version: "2024.1.1" | |
| install-go: false | |
| cache-key: ${{ matrix.go-version }} | |
| if: ${{ matrix.go-version == '1.x' }} | |
| - name: Checkout tc39 tests | |
| run: ./.tc39_test262_checkout.sh | |
| - name: Run tests | |
| env: | |
| GOARCH: ${{ matrix.arch }} | |
| run: go test -vet=off ./... |