diff --git a/.github/workflows/eval.yaml b/.github/workflows/eval.yaml new file mode 100644 index 0000000..28fdd79 --- /dev/null +++ b/.github/workflows/eval.yaml @@ -0,0 +1,31 @@ +name: Evaluate +on: + pull_request: + branches: ["*"] + push: + branches: ["main", "dev"] +jobs: + check: + name: format check + runs-on: ubuntu-latest + permissions: + id-token: "write" + contents: "read" + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/flake-checker-action@main + + - name: Build vaultix cli + run: | + nix build . + + - name: Run cargo check + run: | + nix develop -c cargo check + + - name: Run cargo test + run: | + nix develop -c cargo test diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index 06ba980..0000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: Evaluate Flake -on: - pull_request: - branches: ["*"] - push: - branches: ["main"] -jobs: - check: - name: format check - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - - - name: flake check - run: | - nix flake check - shell: bash - - test: - name: run tests - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - - - name: build vaultix cli - run: | - nix build .# - shell: bash - - name: cargo check - run: | - nix develop -c cargo check - shell: bash