Skip to content

Commit

Permalink
test pr
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghang8421 committed Oct 22, 2024
1 parent ad3d551 commit f1d6294
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/provisioning-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Provisioning tests
on:
pull_request:
branches:
- release/v*
- "!release/v2.9-gha-test"
jobs:
provisioning_tests:
strategy:
Expand Down
41 changes: 22 additions & 19 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
unit-tests:
uses: ./.github/workflows/unit-test.yml
build-chart:
runs-on: ubuntu-latest
runs-on: test-runner-1
container: ubuntu:22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -40,7 +41,8 @@ jobs:
- name: Package
run: ./scripts/chart/package
build-server:
runs-on: ubuntu-latest
if: false
runs-on: test-runner-dind
strategy:
matrix:
os: [linux]
Expand Down Expand Up @@ -105,8 +107,9 @@ jobs:
retention-days: 1
overwrite: false
build-agent:
if: false
needs: [build-server]
runs-on: ubuntu-latest
runs-on: test-runner-dind
strategy:
matrix:
os: [linux]
Expand Down Expand Up @@ -184,19 +187,19 @@ jobs:
if-no-files-found: error
retention-days: 1
overwrite: false
integration-tests:
needs: [build-agent]
uses: ./.github/workflows/integration-tests.yml
with:
parent_run_id: ${{ github.run_id }}
build-agent-windows:
strategy:
matrix:
os: [windows]
version: [2019, 2022]
runs-on: ${{ matrix.os }}-${{ matrix.version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Windows Agent Image
run: docker build -t ${{ env.IMAGE_AGENT }}:${{ env.TAG }} --build-arg VERSION=${{ env.COMMIT }} --build-arg SERVERCORE_VERSION=ltsc${{ matrix.version }} -f package/windows/Dockerfile.agent .
# integration-tests:
# needs: [build-agent]
# uses: ./.github/workflows/integration-tests.yml
# with:
# parent_run_id: ${{ github.run_id }}
# build-agent-windows:
# strategy:
# matrix:
# os: [windows]
# version: [2019, 2022]
# runs-on: ${{ matrix.os }}-${{ matrix.version }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Build Windows Agent Image
# run: docker build -t ${{ env.IMAGE_AGENT }}:${{ env.TAG }} --build-arg VERSION=${{ env.COMMIT }} --build-arg SERVERCORE_VERSION=ltsc${{ matrix.version }} -f package/windows/Dockerfile.agent .
1 change: 1 addition & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ jobs:
env:
GOLANG_VERSION: '1.22'
runs-on: test-runner-1
container: ubuntu:22.04
timeout-minutes: 60
steps:
- name: Checkout code
Expand Down

0 comments on commit f1d6294

Please sign in to comment.