diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0772da..e511520 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,10 +18,18 @@ jobs: build: name: 'Rust Build' runs-on: ubuntu-latest + services: + vault: + image: hashicorp/vault:1.17.1 + ports: + - 8200:8200 + options: --cap-add=IPC_LOCK + env: + VAULT_DEV_ROOT_TOKEN_ID: 'root-token' steps: - name: Check out code uses: actions/checkout@v4 - - name: Install stable toolchain + - name: Install stable Toolchain uses: actions-rs/toolchain@v1 with: profile: ${{ env.TOOLCHAIN_PROFILE }} @@ -40,10 +48,11 @@ jobs: with: command: clippy # args: -- -D warnings - - name: Unit- and Integration-Tests + - name: Unit and Integration Tests uses: actions-rs/cargo@v1 env: RUST_TEST_THREADS: 1 + VAULT_TOKEN: 'root-token' with: command: test - name: Build Binary @@ -56,40 +65,6 @@ jobs: with: name: cli path: target/release/propeller - test: - name: 'Integration Test CLI' - needs: build - runs-on: ubuntu-latest - services: - vault: - image: hashicorp/vault:1.17.1 - ports: - - 8200:8200 - options: --cap-add=IPC_LOCK - env: - VAULT_DEV_ROOT_TOKEN_ID: 'root-token' - steps: - - name: Check out code - uses: actions/checkout@v4 - with: - name: cli - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20.15.0 - cache: 'npm' - - name: Install node.js packages - run: npm ci - - name: Wait for Vault - run: npm run ci:wait-for-vault - - name: Download Binary - uses: actions/download-artifact@v4 - - name: Run integration tests - run: | - chmod 755 ./cli/propeller - ./cli/propeller init-vault -c dev/config.yml - env: - VAULT_TOKEN: 'root-token' check: name: 'Resources Validation' runs-on: ubuntu-latest diff --git a/.idea/runConfigurations/Test_propeller.xml b/.idea/runConfigurations/Build_propeller.xml similarity index 79% rename from .idea/runConfigurations/Test_propeller.xml rename to .idea/runConfigurations/Build_propeller.xml index 6603343..ded5306 100644 --- a/.idea/runConfigurations/Test_propeller.xml +++ b/.idea/runConfigurations/Build_propeller.xml @@ -1,6 +1,6 @@ - -