Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create DiskArchiver for SPS #4

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
Dockerfile
.dockerignore
# .dockerignore
# These files are excluded from commands like COPY, so you can avoid
# importing multi-GB build directories into your container image, and
# speed up your build process

# those items commented out ARE processed by docker commands
# they are listed here (commented out) for completeness sake

.git
.gitignore
.github
# .sqlx
bin
doc
image
sql
# src
target
tests
tools
.dockerignore
.gitignore
# Cargo.lock
# Cargo.toml
datamove.code-workspace
datamove.example.toml
datamove.toml
Dockerfile
NOTES.md
# README.md
26 changes: 0 additions & 26 deletions .github/workflows/build-release.yaml

This file was deleted.

38 changes: 36 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: lint-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
lint-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
lint-cache-${{ runner.os }}-
- run: rustup update stable && rustup default stable
- run: cargo outdated --root-deps-only --exit-code 1
- run: tools/ci/check_rust_deps
- name: Run cargo install cargo-machete
run: |
if [ ! -f ~/.cargo/bin/cargo-machete ]; then
cargo install cargo-machete
fi
- run: cargo machete
- run: cargo fmt --all -- --check
- run: cargo generate-lockfile --locked
- run: cargo check --locked
- run: cargo clippy --locked -- --deny warnings
- run: cargo verify-project --locked
- run: cargo doc --no-deps

test:
name: Test
Expand All @@ -49,3 +62,24 @@ jobs:
with:
context: .
push: false

coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: coverage-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
coverage-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
coverage-cache-${{ runner.os }}-
- run: rustup update stable && rustup default stable
- name: Run cargo install cargo-tarpaulin
run: |
if [ ! -f ~/.cargo/bin/cargo-tarpaulin ]; then
cargo install cargo-tarpaulin
fi
# 1%? yeah, we should do better...
- run: cargo tarpaulin --fail-immediately --fail-under 1 --locked
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,15 @@

# don't version my notes
/NOTES.md

# don't version production configuration
datamove.toml

# don't version the image directory
/image

# don't version the sql directory
/sql

# don't version .rpm files
*.rpm

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

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

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

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

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

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

Loading