Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
updating tests, attempting to fix actions builder
Browse files Browse the repository at this point in the history
  • Loading branch information
nhudson committed Jun 2, 2023
1 parent 936a784 commit b17e150
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nhudson
8 changes: 5 additions & 3 deletions .github/workflows/trunk-build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ jobs:

test:
name: Run tests
needs: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -56,9 +57,10 @@ jobs:
# only publish off main branch
if: github.ref == 'refs/heads/main'
name: trunk publish
needs: test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -86,4 +88,4 @@ jobs:
pgfs_ver=$(stoml Cargo.toml package.version)
pgfs_descr=$(stoml Cargo.toml package.description)
pgfs_repo=$(stoml Cargo.toml package.repository)
trunk publish pgfs --version ${pgfs_ver} --file .trunk/pgfs-${pgfs_ver}.tar.gz --description ${pgfs_descr} --homepage "https://github.com/CoreDB-io/pgfs" --repository "https://github.com/CoreDB-io/pgfs" --license "MIT"
trunk publish pgfs --version ${pgfs_ver} --file .trunk/pgfs-${pgfs_ver}.tar.gz --description ${pgfs_descr} --homepage "https://github.com/CoreDB-io/pgfs" --repository "https://github.com/CoreDB-io/pgfs" --license "MIT"
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pgfs"
version = "0.0.1"
edition = "2021"
authors = ["CoreDB.io"]
description = "Postgres extension to copy files from Postgres"
description = "Postgresql extension to help copy files on the file system using SQL"
homepage = "https://www.coredb.io"
license = "MIT"
readme = "README.md"
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ mod tests {
};
assert_eq!(result, Some(true));

// Assert to check if the src_file exists in the destination directory
let dest_file = format!("{}/test_file", dest_dir);
assert!(fs::metadata(dest_file).is_ok());

// Clean up the directories
let _ = fs::remove_dir_all(source_dir);
let _ = fs::remove_dir_all(dest_dir);
Expand Down

0 comments on commit b17e150

Please sign in to comment.