Skip to content

Commit

Permalink
Test of ghworkflow-rust@devel
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Jul 3, 2022
1 parent 7c0ef02 commit 5f38b80
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: CI
on: [ workflow_dispatch, push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://lpenz/omnilint:0.4
rust:
uses: lpenz/ghworkflow-rust/.github/workflows/rust.yml@devel
with:
coveralls: true
deb: true
publish_github_release_files: ghworkflow-rust-test
publish_packagecloud: true
publish_packagecloud_repository: debian/debian/bullseye
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "ghworkflow-rust-test"
description = "Test of ghworkflow-rust"
version = "0.1.0"
authors = ["Leandro Lisboa Penz <lpenz@lpenz.org>"]
edition = "2021"
license = "MIT"
readme = "README.md"
categories = ["command-line-utilities"]
keywords = ["watch", "command-line"]

[dependencies]

[package.metadata.deb]
section = "utils"
assets = [
["target/release/ghworkflow-rust-test", "usr/bin/", "755"],
["LICENSE", "usr/share/doc/ghworkflow-rust-test/", "644"],
["README.md", "usr/share/doc/ghworkflow-rust-test/", "644"],
]
3 changes: 3 additions & 0 deletions src/bin/ghworkflow-rust-test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("{}", ghworkflow_rust_test::hello_world());
}
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pub fn hello_world() -> &'static str {
"hello world!"
}

#[test]
fn test_hello_world() {
assert_eq!(hello_world(), "hello world!");
}

0 comments on commit 5f38b80

Please sign in to comment.