Skip to content

Commit

Permalink
set to ubuntu-22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Dec 13, 2024
1 parent 82bcf24 commit 621e4a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
go-version: [1.22.x]
platform: [ubuntu-latest, windows-latest]
platform: [ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
Expand All @@ -35,21 +35,21 @@ jobs:
run: |
set -x
go version
export GOMAXPROCS=1
args=("-p" "1" "-race")
export GOMAXPROCS=2
args=("-p" "2" "-race")
# Run with less concurrency on Windows/MacOS to minimize flakiness.
if [[ "${{ matrix.platform }}" == windows* || "${{ matrix.platform }}" == macos* ]]; then
unset args[2]
args[1]="1"
export GOMAXPROCS=1
fi
K6_BROWSER_EXECUTABLE_PATH=/usr/bin/google-chrome K6_BROWSER_HEADLESS=true go test "${args[@]}" -timeout 800s ./...
go test "${args[@]}" -timeout 800s ./...
test-tip:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
platform: [ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.platform }}
continue-on-error: true
steps:
Expand Down Expand Up @@ -80,14 +80,14 @@ jobs:
args[1]="1"
export GOMAXPROCS=1
fi
K6_BROWSER_EXECUTABLE_PATH=/usr/bin/google-chrome K6_BROWSER_HEADLESS=true go test "${args[@]}" -timeout 800s ./...
go test "${args[@]}" -timeout 800s ./...
test-current-cov:
strategy:
fail-fast: false
matrix:
go-version: [1.23.x]
platform: [ubuntu-latest, windows-latest]
platform: [ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
list=$(echo "$list" | cut -f1 -d ' ' | sort -u | paste -sd, -)
fi
K6_BROWSER_EXECUTABLE_PATH=/usr/bin/google-chrome K6_BROWSER_HEADLESS=true go test "${args[@]}" -timeout 800s --coverpkg="$list" -coverprofile=$(echo $pkg | tr / -).coverage $pkg
go test "${args[@]}" -timeout 800s --coverpkg="$list" -coverprofile=$(echo $pkg | tr / -).coverage $pkg
done
grep -h -v "^mode:" *.coverage >> coverage.txt
rm -f *.coverage
Expand Down

0 comments on commit 621e4a0

Please sign in to comment.