Run make in parallel instead of adding cpus to tests #2663
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 Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- 'feat-**' | |
env: | |
EACHMODULE_CONCURRENCY: 2 | |
SMITHY_GO_REPOSITORY: ${{ github.event.pull_request.head.repo.owner.login }}/smithy-go | |
GIT_PAT: ${{ secrets.CI_GIT_PAT}} | |
jobs: | |
unix-tests: | |
name: Unix SDK tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
go-version: ["1.21", "1.22", "1.23"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Find smithy-go | |
env: | |
RUNNER_TMPDIR: ${{ runner.temp }} | |
run: ./ci-find-smithy-go.sh | |
- name: Install golint | |
run: go install golang.org/x/lint/golint@latest | |
- name: Test | |
run: make experimental-module | |
x86-tests: | |
name: Unix x86 SDK tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
go-version: ["1.21"] | |
env: | |
GOARCH: "386" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Find smithy-go | |
env: | |
RUNNER_TMPDIR: ${{ runner.temp }} | |
run: ./ci-find-smithy-go.sh | |
- name: Install golint | |
run: go install golang.org/x/lint/golint@latest | |
- name: Test | |
run: make experimental-module-no-race | |
windows-tests: | |
name: Windows SDK Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
go-version: ["1.21", "1.22", "1.23"] | |
env: | |
EACHMODULE_SKIP: "internal\\repotools\\changes" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Find smithy-go | |
shell: bash | |
env: | |
RUNNER_TMPDIR: ${{ runner.temp }} | |
run: ./ci-find-smithy-go.sh | |
- name: Test | |
run: make experimental-module-no-race |