From f1592d3c52f26a6fccf062d73ba0bf008d3747c2 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Sat, 25 May 2024 18:59:43 +0200 Subject: [PATCH] Fix: Tests --- .github/workflows/build-napi.yml | 9 --------- .github/workflows/build-python.yml | 9 --------- .github/workflows/release-node.yml | 10 ++++++++++ .github/workflows/release-python.yml | 9 +++++++++ 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-napi.yml b/.github/workflows/build-napi.yml index a39fb24..537ac6c 100644 --- a/.github/workflows/build-napi.yml +++ b/.github/workflows/build-napi.yml @@ -23,18 +23,9 @@ jobs: name: Generate schemas uses: ./.github/workflows/generate-schemas.yml - test-rust-crate: - uses: ./.github/workflows/rust-test.yml - secrets: - INFISICAL_UNIVERSAL_CLIENT_SECRET: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_SECRET }} - INFISICAL_UNIVERSAL_CLIENT_ID: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_ID }} - INFISICAL_PROJECT_ID: ${{ secrets.INFISICAL_PROJECT_ID }} - INFISICAL_SITE_URL: ${{ secrets.INFISICAL_SITE_URL }} - build: needs: - generate_schemas - - test-rust-crate strategy: fail-fast: false matrix: diff --git a/.github/workflows/build-python.yml b/.github/workflows/build-python.yml index e63c6d2..9e17171 100644 --- a/.github/workflows/build-python.yml +++ b/.github/workflows/build-python.yml @@ -9,19 +9,10 @@ jobs: generate_schemas: uses: ./.github/workflows/generate-schemas.yml - test-rust-crate: - uses: ./.github/workflows/rust-test.yml - secrets: - INFISICAL_UNIVERSAL_CLIENT_SECRET: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_SECRET }} - INFISICAL_UNIVERSAL_CLIENT_ID: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_ID }} - INFISICAL_PROJECT_ID: ${{ secrets.INFISICAL_PROJECT_ID }} - INFISICAL_SITE_URL: ${{ secrets.INFISICAL_SITE_URL }} - bump-version: name: Version changes needs: - generate_schemas - - test-rust-crate runs-on: ubuntu-latest # if: startsWith(github.ref, 'refs/tags/') steps: diff --git a/.github/workflows/release-node.yml b/.github/workflows/release-node.yml index fef3712..a9d3198 100644 --- a/.github/workflows/release-node.yml +++ b/.github/workflows/release-node.yml @@ -16,7 +16,17 @@ jobs: build-napi: uses: ./.github/workflows/build-napi.yml + test-rust-crate: + uses: ./.github/workflows/rust-test.yml + secrets: + INFISICAL_UNIVERSAL_CLIENT_SECRET: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_SECRET }} + INFISICAL_UNIVERSAL_CLIENT_ID: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_ID }} + INFISICAL_PROJECT_ID: ${{ secrets.INFISICAL_PROJECT_ID }} + INFISICAL_SITE_URL: ${{ secrets.INFISICAL_SITE_URL }} + setup: + needs: + - test-rust-crate name: Setup runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index b0d3f2b..f4f2067 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -11,8 +11,17 @@ jobs: build-python: uses: ./.github/workflows/build-python.yml + test-rust-crate: + uses: ./.github/workflows/rust-test.yml + secrets: + INFISICAL_UNIVERSAL_CLIENT_SECRET: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_SECRET }} + INFISICAL_UNIVERSAL_CLIENT_ID: ${{ secrets.INFISICAL_UNIVERSAL_CLIENT_ID }} + INFISICAL_PROJECT_ID: ${{ secrets.INFISICAL_PROJECT_ID }} + INFISICAL_SITE_URL: ${{ secrets.INFISICAL_SITE_URL }} + setup: needs: + - test-rust-crate - build-python name: Setup runs-on: ubuntu-22.04