Skip to content

Commit b6cfcc3

Browse files
committed
various: change name to torrust-index
small changes included: - move to deployment workflow - move copyright to readme - remove common license files
1 parent f43da9e commit b6cfcc3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+999
-1418
lines changed

.github/workflows/coverage.yaml

-18
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,9 @@ env:
1212
CARGO_TERM_COLOR: always
1313

1414
jobs:
15-
secrets:
16-
name: Secrets
17-
environment: coverage
18-
runs-on: ubuntu-latest
19-
20-
outputs:
21-
continue: ${{ steps.check.outputs.continue }}
22-
23-
steps:
24-
- id: check
25-
name: Check
26-
env:
27-
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
28-
if: "${{ env.CODECOV_TOKEN != '' }}"
29-
run: echo "continue=true" >> $GITHUB_OUTPUT
30-
3115
report:
3216
name: Report
3317
environment: coverage
34-
needs: secrets
35-
if: needs.secrets.outputs.continue == 'true'
3618
runs-on: ubuntu-latest
3719
env:
3820
CARGO_INCREMENTAL: "0"

.github/workflows/deployment.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- "releases/**/*"
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
toolchain: [stable, nightly]
16+
17+
steps:
18+
- id: checkout
19+
name: Checkout Repository
20+
uses: actions/checkout@v4
21+
22+
- id: setup
23+
name: Setup Toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
with:
26+
toolchain: ${{ matrix.toolchain }}
27+
28+
- id: test
29+
name: Run Unit Tests
30+
run: cargo test --tests --benches --examples --workspace --all-targets --all-features
31+
32+
publish:
33+
name: Publish
34+
environment: deployment
35+
needs: test
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- id: checkout
40+
name: Checkout Repository
41+
uses: actions/checkout@v4
42+
43+
- id: setup
44+
name: Setup Toolchain
45+
uses: dtolnay/rust-toolchain@stable
46+
with:
47+
toolchain: stable
48+
49+
- id: publish
50+
name: Publish Crates
51+
env:
52+
CARGO_REGISTRY_TOKEN: "${{ secrets.TORRUST_UPDATE_CARGO_REGISTRY_TOKEN }}"
53+
run: |
54+
cargo publish -p torrust-index

.github/workflows/labels.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- id: sync
3131
name: Apply Labels from File
32-
uses: EndBug/label-sync@v2
32+
uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8
3333
with:
3434
config-file: .github/labels.json
3535
delete-other-labels: true

.github/workflows/publish_crate.yaml

-54
This file was deleted.

.github/workflows/publish_docker_image.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: docker/metadata-action@v4
5555
with:
5656
images: |
57-
# For example: torrust/index-backend
57+
# For example: torrust/index
5858
"${{ secrets.DOCKER_HUB_USERNAME }}/${{secrets.DOCKER_HUB_REPOSITORY_NAME }}"
5959
tags: |
6060
type=ref,event=branch

.github/workflows/release.yaml

-97
This file was deleted.

.github/workflows/testing.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ jobs:
6565
name: Run Lint Checks
6666
run: cargo clippy --tests --benches --examples --workspace --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious -D clippy::complexity -D clippy::perf -D clippy::style -D clippy::pedantic
6767

68-
- id: doc
69-
name: Run Documentation Checks
70-
run: cargo test --doc
68+
- id: docs
69+
name: Lint Documentation
70+
env:
71+
RUSTDOCFLAGS: "-D warnings"
72+
run: cargo doc --no-deps --bins --examples --workspace --all-features
7173

7274
unit:
7375
name: Units
@@ -104,6 +106,10 @@ jobs:
104106
name: Install Intermodal
105107
run: cargo install imdl
106108

109+
- id: test-docs
110+
name: Run Documentation Tests
111+
run: cargo test --doc
112+
107113
- id: test
108114
name: Run Unit Tests
109115
run: cargo test --tests --benches --examples --workspace --all-targets --all-features

.vscode/launch.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
{
88
"type": "lldb",
99
"request": "launch",
10-
"name": "Debug unit tests in library 'torrust-index-backend'",
10+
"name": "Debug unit tests in library 'torrust-index'",
1111
"cargo": {
1212
"args": [
1313
"test",
1414
"--no-run",
1515
"--lib",
16-
"--package=torrust-index-backend"
16+
"--package=torrust-index"
1717
],
1818
"filter": {
19-
"name": "torrust-index-backend",
19+
"name": "torrust-index",
2020
"kind": "lib"
2121
}
2222
},
@@ -31,7 +31,7 @@
3131
"args": [
3232
"build",
3333
"--bin=main",
34-
"--package=torrust-index-backend"
34+
"--package=torrust-index"
3535
],
3636
"filter": {
3737
"name": "main",
@@ -50,7 +50,7 @@
5050
"test",
5151
"--no-run",
5252
"--bin=main",
53-
"--package=torrust-index-backend"
53+
"--package=torrust-index"
5454
],
5555
"filter": {
5656
"name": "main",
@@ -68,7 +68,7 @@
6868
"args": [
6969
"build",
7070
"--bin=import_tracker_statistics",
71-
"--package=torrust-index-backend"
71+
"--package=torrust-index"
7272
],
7373
"filter": {
7474
"name": "import_tracker_statistics",
@@ -87,7 +87,7 @@
8787
"test",
8888
"--no-run",
8989
"--bin=import_tracker_statistics",
90-
"--package=torrust-index-backend"
90+
"--package=torrust-index"
9191
],
9292
"filter": {
9393
"name": "import_tracker_statistics",
@@ -105,7 +105,7 @@
105105
"args": [
106106
"build",
107107
"--bin=parse_torrent",
108-
"--package=torrust-index-backend"
108+
"--package=torrust-index"
109109
],
110110
"filter": {
111111
"name": "parse_torrent",
@@ -124,7 +124,7 @@
124124
"test",
125125
"--no-run",
126126
"--bin=parse_torrent",
127-
"--package=torrust-index-backend"
127+
"--package=torrust-index"
128128
],
129129
"filter": {
130130
"name": "parse_torrent",
@@ -142,7 +142,7 @@
142142
"args": [
143143
"build",
144144
"--bin=upgrade",
145-
"--package=torrust-index-backend"
145+
"--package=torrust-index"
146146
],
147147
"filter": {
148148
"name": "upgrade",
@@ -161,7 +161,7 @@
161161
"test",
162162
"--no-run",
163163
"--bin=upgrade",
164-
"--package=torrust-index-backend"
164+
"--package=torrust-index"
165165
],
166166
"filter": {
167167
"name": "upgrade",
@@ -180,7 +180,7 @@
180180
"test",
181181
"--no-run",
182182
"--test=mod",
183-
"--package=torrust-index-backend"
183+
"--package=torrust-index"
184184
],
185185
"filter": {
186186
"name": "mod",

COPYRIGHT

-11
This file was deleted.

0 commit comments

Comments
 (0)