Skip to content

Commit

Permalink
ci(fix): fix test steps for real this time (#1107)
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Alvarez <[email protected]>
  • Loading branch information
pendo324 authored Sep 23, 2024
1 parent f32a97f commit 346ac72
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 39 deletions.
47 changes: 17 additions & 30 deletions .github/workflows/ci-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ on:
- 'contrib/**'
- '!contrib/packaging/**'
- '.github/**'
- '!.github/workflows/ci.yaml'
- '!.github/workflows/e2e-*.yaml'
- '!.github/workflows/e2e-macos.yaml'
- '!.github/workflows/e2e-windows.yaml'
- '!.github/workflows/e2e-linux.yaml'
pull_request:
branches:
- main
Expand All @@ -27,8 +28,9 @@ on:
- 'contrib/**'
- '!contrib/packaging/**'
- '.github/**'
- '!.github/workflows/ci.yaml'
- '!.github/workflows/e2e-*.yaml'
- '!.github/workflows/e2e-macos.yaml'
- '!.github/workflows/e2e-windows.yaml'
- '!.github/workflows/e2e-linux.yaml'

jobs:
git-secrets:
Expand Down Expand Up @@ -80,41 +82,26 @@ jobs:
macos-e2e-tests:
strategy:
matrix:
os:
[
[13, test-e2e-container, X64, test],
[13, test-e2e-container, arm64, test],
[13, test-e2e-vm-serial, X64, test],
[13, test-e2e-vm-serial, arm64, test],
[14, test-e2e-container, X64, test],
[14, test-e2e-container, arm64, test],
[14, test-e2e-vm-serial, X64, test],
[14, test-e2e-vm-serial, arm64, test],
]
version: ['13', '14']
test-command: ['test-e2e-vm-serial', 'test-e2e-container']
arch: ['X64', 'arm64']
runner-type: ['test']
uses: ./.github/workflows/e2e-docs.yaml
with:
os: ${{ matrix.os }}
windows-e2e-tests:
strategy:
matrix:
os:
[[test-e2e-container, amd64, test], [test-e2e-vm-serial, amd64, test]]
test-command: ['test-e2e-vm-serial', 'test-e2e-container']
arch: ['amd64']
runner-type: ['test']
uses: ./.github/workflows/e2e-docs.yaml
with:
os: ${{ matrix.os }}
linux-e2e-tests:
strategy:
matrix:
os:
[
[amazonlinux, X64, 2, test],
[amazonlinux, X64, 2023, test],
[amazonlinux, arm64, 2, test],
[amazonlinux, arm64, 2023, test],
]
os: ['amazonlinux']
arch: ['X64', 'arm64']
version: ['2023', '2']
runner-type: ['test']
uses: ./.github/workflows/e2e-docs.yaml
with:
os: ${{ matrix.os }}
mdlint:
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/ci.yaml'
- '.github/workflows/e2e-*.yaml'
- '.github/workflows/e2e-macos.yaml'
- '.github/workflows/e2e-windows.yaml'
- '.github/workflows/e2e-linux.yaml'
- 'contrib/packaging/**'
- '!contrib/hello-finch/**'
pull_request:
Expand All @@ -20,8 +21,9 @@ on:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/ci.yaml'
- '.github/workflows/e2e-*.yaml'
- '.github/workflows/e2e-macos.yaml'
- '.github/workflows/e2e-windows.yaml'
- '.github/workflows/e2e-linux.yaml'
- 'contrib/packaging/**'
- '!contrib/hello-finch/**'
workflow_dispatch:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/e2e-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: e2e-docs
on:
workflow_call:
inputs:
os:
type: string
required: true

jobs:
test:
runs-on: ['self-hosted', '${{ fromJson(inputs.os) }}']
runs-on: ubuntu-latest
steps:
- name: Skip
run: |
Expand Down

0 comments on commit 346ac72

Please sign in to comment.