-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
234 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Validate host file/dir functionality" | ||
on: | ||
push: | ||
branches: | ||
- "mistress" | ||
paths: | ||
- "**.rs" | ||
- "**.yaml" | ||
- "**.toml" | ||
pull_request: | ||
branches: | ||
- "mistress" | ||
paths: | ||
- "**.rs" | ||
- "**.yaml" | ||
- "**.toml" | ||
jobs: | ||
run-host-file-dir-functionality-tests: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Install latest stable Rust" | ||
uses: "actions-rs/toolchain@v1" | ||
with: | ||
toolchain: "stable" | ||
profile: "minimal" | ||
override: true | ||
target: "x86_64-unknown-linux-musl" | ||
- uses: "Swatinem/rust-cache@v2" | ||
with: | ||
key: "cli-functionality" | ||
cache-on-failure: true | ||
- name: "Install musl-tools" | ||
run: "sudo apt-get update && sudo apt-get install -y musl-tools" | ||
- name: "Build release binary!" | ||
uses: "actions-rs/cargo@v1" | ||
with: | ||
command: "build" | ||
args: "--release --target=x86_64-unknown-linux-musl" | ||
- name: "Run release binary" | ||
run: "pwd && ls -lah && env RUST_LOG=debug ./target/x86_64-unknown-linux-musl/release/peckish -c ./test-configs/peckish.host_file_dir.yaml" | ||
- name: "Validate file contents" | ||
run: "tar -tvf ./test_output_pls_ignore/host_file_dir | grep hosts2" | ||
- name: "Validate directory contents" | ||
run: "tar -tvf ./test_output_pls_ignore/host_file_dir | grep docs2" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
pipeline: false | ||
|
||
metadata: | ||
name: "peckish" | ||
version: "0.0.1-1" | ||
description: "peckish transforms software artifacts" | ||
author: "amy null" | ||
arch: "amd64" | ||
license: "Apache-2.0" | ||
|
||
input: | ||
name: "Cargo.toml" | ||
type: "file" | ||
paths: | ||
- "./Cargo.toml" | ||
|
||
output: | ||
- name: "tarball" | ||
type: "tarball" | ||
path: "./test_output_pls_ignore/host_file_dir.tar" | ||
injections: | ||
- type: "host_file" | ||
src: "/etc/hosts" | ||
dest: "/etc/hosts2" | ||
- type: "host_dir" | ||
src: "./docs" | ||
dest: "/docs2" |