| 1 |
# Copyright 2021 The Go Cloud Development Kit Authors |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
name: tests |
| 16 |
on: [push, pull_request] |
| 17 |
jobs: |
| 18 |
build: |
| 19 |
strategy: |
| 20 |
fail-fast: false |
| 21 |
matrix: |
| 22 |
# Note: we used to include windows-latest, but it's super |
| 23 |
# flaky on Github runners, lots of OOMs. |
| 24 |
os: [ubuntu-latest, macos-latest] |
| 25 |
# When updating this, make sure to also update the |
| 26 |
# latest_go_version variable in internal/testing/runchecks.sh. |
| 27 |
go-version: [1.26.x] |
| 28 |
include: |
| 29 |
- go-version: 1.25.x |
| 30 |
os: ubuntu-latest |
| 31 |
|
| 32 |
runs-on: ${{ matrix.os }} |
| 33 |
steps: |
| 34 |
- name: Install Go |
| 35 |
uses: actions/setup-go@v6 |
| 36 |
with: |
| 37 |
go-version: ${{ matrix.go-version }} |
| 38 |
- name: Checkout code |
| 39 |
uses: actions/checkout@v6 |
| 40 |
with: |
| 41 |
fetch-depth: 2 # required for codecov |
| 42 |
- name: Run Tests |
| 43 |
shell: bash |
| 44 |
run: 'internal/testing/runchecks.sh' |
| 45 |
- if: matrix.os == 'ubuntu-latest' |
| 46 |
name: Build for dragonfly |
| 47 |
run: | |
| 48 |
go install ./... |
| 49 |
env: |
| 50 |
GOARCH: amd64 |
| 51 |
GOOS: dragonfly |