mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
update test workflow
This commit is contained in:
58
.github/workflows/test.yml
vendored
58
.github/workflows/test.yml
vendored
@@ -77,9 +77,7 @@ jobs:
|
||||
run: |
|
||||
mkdir ~/artifacts
|
||||
mv $GITHUB_WORKSPACE/steampipe/dist/steampipe_linux_amd64.tar.gz ~/artifacts/linux.tar.gz
|
||||
mv $GITHUB_WORKSPACE/steampipe/dist/steampipe_linux_arm64.tar.gz ~/artifacts/linux-arm.tar.gz
|
||||
mv $GITHUB_WORKSPACE/steampipe/dist/steampipe_darwin_arm64.zip ~/artifacts/darwin.zip
|
||||
mv $GITHUB_WORKSPACE/steampipe/dist/steampipe_darwin_amd64.zip ~/artifacts/darwin-amd.zip
|
||||
|
||||
- name: List Build Artifacts
|
||||
run: ls -l ~/artifacts
|
||||
@@ -92,14 +90,6 @@ jobs:
|
||||
if-no-files-found: error
|
||||
overwrite: true
|
||||
|
||||
- name: Save Linux ARM Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-artifact-linux-arm
|
||||
path: ~/artifacts/linux-arm.tar.gz
|
||||
if-no-files-found: error
|
||||
overwrite: true
|
||||
|
||||
- name: Save MacOS Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -108,21 +98,13 @@ jobs:
|
||||
if-no-files-found: error
|
||||
overwrite: true
|
||||
|
||||
- name: Save MacOS AMD Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-artifact-darwin-amd
|
||||
path: ~/artifacts/darwin-amd.zip
|
||||
if-no-files-found: error
|
||||
overwrite: true
|
||||
|
||||
acceptance_test:
|
||||
name: Test
|
||||
needs: goreleaser
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform: [ubuntu-latest, macos-14, ubuntu-24.04-arm, macos-13]
|
||||
platform: [ubuntu-latest] # add other platforms as needed
|
||||
test_block:
|
||||
- "migration"
|
||||
- "brew"
|
||||
@@ -146,13 +128,9 @@ jobs:
|
||||
- "exit_codes"
|
||||
- "force_stop"
|
||||
exclude:
|
||||
- platform: macos-14
|
||||
- platform: macos-latest
|
||||
test_block: migration
|
||||
- platform: macos-14
|
||||
test_block: force_stop
|
||||
- platform: macos-13
|
||||
test_block: migration
|
||||
- platform: macos-13
|
||||
- platform: macos-latest
|
||||
test_block: force_stop
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
@@ -178,51 +156,25 @@ jobs:
|
||||
name: build-artifact-linux
|
||||
path: ~/artifacts
|
||||
|
||||
- name: Download Linux ARM Build Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
if: ${{ matrix.platform == 'ubuntu-24.04-arm' }}
|
||||
with:
|
||||
name: build-artifact-linux-arm
|
||||
path: ~/artifacts
|
||||
|
||||
- name: Download Darwin Build Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
if: ${{ matrix.platform == 'macos-14' }}
|
||||
if: ${{ matrix.platform == 'macos-latest' }}
|
||||
with:
|
||||
name: build-artifact-darwin
|
||||
path: ~/artifacts
|
||||
|
||||
- name: Download Darwin AMD Build Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
if: ${{ matrix.platform == 'macos-13' }}
|
||||
with:
|
||||
name: build-artifact-darwin-amd
|
||||
path: ~/artifacts
|
||||
|
||||
- name: Extract Darwin Artifacts and Install Binary
|
||||
if: ${{ matrix.platform == 'macos-14' }}
|
||||
if: ${{ matrix.platform == 'macos-latest' }}
|
||||
run: |
|
||||
mkdir ~/build
|
||||
unzip ~/artifacts/darwin.zip -d ~/build
|
||||
|
||||
- name: Extract Darwin AMD Artifacts and Install Binary
|
||||
if: ${{ matrix.platform == 'macos-13' }}
|
||||
run: |
|
||||
mkdir ~/build
|
||||
unzip ~/artifacts/darwin-amd.zip -d ~/build
|
||||
|
||||
- name: Extract Ubuntu Artifacts and Install Binary
|
||||
if: ${{ matrix.platform == 'ubuntu-latest' }}
|
||||
run: |
|
||||
mkdir ~/build
|
||||
tar -xf ~/artifacts/linux.tar.gz -C ~/build
|
||||
|
||||
- name: Extract Ubuntu ARM Artifacts and Install Binary
|
||||
if: ${{ matrix.platform == 'ubuntu-24.04-arm' }}
|
||||
run: |
|
||||
mkdir ~/build
|
||||
tar -xf ~/artifacts/linux-arm.tar.gz -C ~/build
|
||||
|
||||
- name: Set PATH
|
||||
run: |
|
||||
echo "PATH=$PATH:$HOME/build:$GTIHUB_WORKSPACE/tests/acceptance/lib/bats-core/libexec" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user