Skip to content

chore: Nix & Cachix CI config #159

chore: Nix & Cachix CI config

chore: Nix & Cachix CI config #159

Workflow file for this run

# name: Build and test
# on:
# push:
# branches:
# - main
# pull_request:
# workflow_dispatch:
# jobs:
# cargo_test:
# name: Cargo tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# - uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# # Deploy services used for test (Hashicorp Vault, etc.)
# - uses: isbang/[email protected]
# with:
# compose-file: "./tests/docker-compose.yml"
# down-flags: "--volumes"
# - run: cargo test
# docker_build:
# name: Docker build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Build
# uses: docker/build-push-action@v4
# with:
# cache-from: type=gha
# cache-to: type=gha,mode=max
# outputs: "type=local,dest=novops-build"
# - name: Upload binary artifact
# uses: actions/upload-artifact@v3
# with:
# name: novops-binary
# path: |
# novops-build/novops
# load_novops:
# name: run Novops commands
# runs-on: ubuntu-latest
# needs: docker_build
# steps:
# - uses: actions/checkout@v3
# - name: Download novops artifact
# uses: actions/download-artifact@v3
# with:
# name: novops-binary
# - name: novops load
# run: |
# chmod +x ./novops
# ./novops load -c tests/.novops.plain-strings.yml -s .envrc -e dev
# cat .envrc >> "$GITHUB_ENV"
# - name: check novops loaded values
# run: env | grep MY_APP_HOST
# - name: novops run and check var
# run: |
# ./novops run -c tests/.novops.plain-strings.yml -e dev -- sh -c "env | grep DOG_PATH"