Merge pull request #227 from oakmound/fix/bump-x-image #601
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: 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 |