Implement interactive container attach #925
This file contains hidden or 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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
event-file: | |
# https://github.com/marketplace/actions/publish-test-results#support-fork-repositories-and-dependabot-branches | |
name: "Event File" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: event-file | |
path: ${{ github.event_path }} | |
ci-build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
# pinned to macos-13 due to https://github.com/actions/runner-images/issues/9254 | |
- macos-13 | |
java: | |
- 8 | |
- 17 | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Install Docker on macOS | |
if: matrix.os == 'macos-13' | |
uses: douglascamata/[email protected] | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up Go | |
if: matrix.os == 'windows-latest' | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: debug dns issues on Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
nslookup registry-1.docker.io | |
curl -v https://registry-1.docker.io/ | |
curl -v https://registry-1.docker.io/v2/ | |
curl -v --head https://registry-1.docker.io/v2/gesellix/echo-server/manifests/os-windows | |
go run .github/check.go | |
- name: clean build | |
run: ./gradlew clean build --info --stacktrace | |
env: | |
ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ env.GITHUB_ACTOR }} | |
ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload Test Results | |
# see publish-test-results.yml for workflow that publishes test results without security issues for forks | |
# https://github.com/marketplace/actions/publish-test-results#support-fork-repositories-and-dependabot-branches | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test Results (Java ${{ matrix.java }} on ${{ matrix.os }}) | |
path: '**/build/test-results/test/TEST-*.xml' | |
... |