Skip to content

Merge pull request #221 from oakmound/hotfix/x-image-bump #592

Merge pull request #221 from oakmound/hotfix/x-image-bump

Merge pull request #221 from oakmound/hotfix/x-image-bump #592

Workflow file for this run

name: Go
env:
GO_VERSION: 1.18
on: [push]
jobs:
test-windows-x64:
name: Test (windows amd64)
runs-on: [self-hosted, windows, x64]
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test
run: ./test_examples.sh
shell: bash
test-linux-arm:
name: Test (linux arm)
runs-on: [self-hosted, linux, ARM64]
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test
run: ./test_examples.sh
test-linux-x64:
name: Test (linux x64)
runs-on: [self-hosted, linux, x64]
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test
run: ./test_examples.sh
test-js-compilation:
name: Test Examples (JS Compilation)
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test
run: ./test_examples_js.sh
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
mkdir -p /home/runner/go/bin
go get -v -t -d ./...
- name: Test
run: ./test_coverage.sh
- name: Push to codecov
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.txt