From 6fee06a42afa5a09fe5f87dd3d874f7e2531071f Mon Sep 17 00:00:00 2001 From: Petr Gazarov Date: Wed, 18 Oct 2023 05:55:23 -0700 Subject: [PATCH] GA: Add test --- .github/workflows/test_linux_install.yml | 9 ++++++++- .github/workflows/test_macos_install.yml | 7 ++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_linux_install.yml b/.github/workflows/test_linux_install.yml index e08bb18..b91b66c 100644 --- a/.github/workflows/test_linux_install.yml +++ b/.github/workflows/test_linux_install.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + path: salami-repo - name: Install Homebrew run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" @@ -37,7 +39,7 @@ jobs: LATEST_TAG=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r .tag_name) echo "tag=${LATEST_TAG}" >> $GITHUB_OUTPUT - - name: Verify Installation + - name: Verify version run: | set -euo pipefail @@ -46,3 +48,8 @@ jobs: echo "Version mismatch. Expected: Salami v${{ steps.latest-tag.outputs.tag }}, Got: $version" exit 1 fi + + - name: Verify compile + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + run: salami-repo/.github/scripts/verify-compile/run.sh salami-repo \ No newline at end of file diff --git a/.github/workflows/test_macos_install.yml b/.github/workflows/test_macos_install.yml index e470a58..10e4e5a 100644 --- a/.github/workflows/test_macos_install.yml +++ b/.github/workflows/test_macos_install.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + path: salami-repo - name: Tap Salami run: brew tap petrgazarov/salami @@ -44,11 +46,6 @@ jobs: exit 1 fi - - name: Checkout code - uses: actions/checkout@v3 - with: - path: salami-repo - - name: Verify compile env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}