Files
sshtermy/.github/workflows/ci.yml
T
dependabot[bot] 023b9be5a3 intern: bump the actions group across 1 directory with 5 updates (#82)
Bumps the actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `4` | `7` |
| [actions/setup-go](https://github.com/actions/setup-go) | `5` | `7` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `7` |
| [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) | `3` | `5` |
| [actions/deploy-pages](https://github.com/actions/deploy-pages) | `4` | `5` |



Updates `actions/checkout` from 4 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

Updates `actions/setup-go` from 5 to 7
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v7)

Updates `actions/upload-artifact` from 4 to 7
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

Updates `actions/upload-pages-artifact` from 3 to 5
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v3...v5)

Updates `actions/deploy-pages` from 4 to 5
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/deploy-pages
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-go
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/upload-pages-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-09 11:06:46 +01:00

103 lines
3.2 KiB
YAML

# Pull Requests: Tests und Cross-Compile für alle Zielplattformen.
name: ci
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
# neuester Patch von Go 1.26: Sicherheitskorrekturen der Standardbibliothek
go-version: "1.26.x"
check-latest: true
- run: go vet ./... && go test ./...
- name: Terminal-Emulator (eigene Kopie in third_party/vt)
run: cd third_party/vt && go test ./...
- name: Lasttest mit 1000 Hosts
run: make loadtest
# Bildschirm-Tests: abweichende Bilder zum Ansehen hochladen
- uses: actions/upload-artifact@v7
if: failure()
with:
name: golden-actual
path: internal/ui/testdata/golden-actual/
if-no-files-found: ignore
- name: Cross-Compile
run: |
for t in windows/arm64 windows/386 windows/amd64 darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 linux/arm linux/riscv64; do
CGO_ENABLED=0 GOARM=7 GOOS=${t%/*} GOARCH=${t#*/} go build -o /dev/null ./cmd/sshtermy
done
# Datenrennen (Terminal-Emulator, Vermittler, SSH) früh finden
race:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
# neuester Patch von Go 1.26: Sicherheitskorrekturen der Standardbibliothek
go-version: "1.26.x"
check-latest: true
- run: go test -race ./...
# Tests auch auf echtem Windows und macOS (ConPTY, DPAPI, Schlüsselbund, Pfade)
platforms:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
check-latest: true
- run: go test ./...
- run: cd third_party/vt && go test ./...
- uses: actions/upload-artifact@v7
if: failure()
with:
name: golden-actual-${{ matrix.os }}
path: internal/ui/testdata/golden-actual/
if-no-files-found: ignore
# Bekannte Sicherheitslücken in Go und allen Bibliotheken, die wirklich aufgerufen werden
vuln:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
check-latest: true
- run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
# Parser für Daten von fremden Geräten kurz mit Zufallsdaten beschießen
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
check-latest: true
- run: FUZZTIME=15s tools/fuzz/run.sh
- uses: actions/upload-artifact@v7
if: failure()
with:
name: fuzz-funde
path: internal/**/testdata/fuzz/
if-no-files-found: ignore
packaging:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: sudo apt-get install -y -qq apt-utils python3-yaml >/dev/null
- run: packaging/check.sh