Skip to content

Commit 0164d63

Browse files
ci: Use new docker-supporting backend workflows
1 parent faf18a0 commit 0164d63

1 file changed

Lines changed: 2 additions & 48 deletions

File tree

‎.github/workflows/rust-workflow.yml‎

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -58,51 +58,5 @@ jobs:
5858
run: typos --exclude '*.key' --exclude '*.crt' --exclude '*.csr' --exclude '*.srl'
5959

6060
tests:
61-
runs-on: ubuntu-latest
62-
steps:
63-
- name: Checkout current repository
64-
uses: actions/checkout@v4
65-
66-
- uses: famedly/backend-build-workflows/.github/actions/rust-prepare@main
67-
with:
68-
gitlab_ssh: ${{ secrets.CI_SSH_PRIVATE_KEY}}
69-
gitlab_user: ${{ secrets.GITLAB_USER }}
70-
gitlab_pass: ${{ secrets.GITLAB_PASS }}
71-
72-
- name: Add llvm-tools rust component
73-
run: rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu
74-
75-
- name: Caching
76-
uses: Swatinem/rust-cache@68b3cb7503c78e67dae8373749990a220eb65352
77-
with:
78-
cache-on-failure: true
79-
cache-all-crates: true
80-
81-
- name: Install additional cargo tooling
82-
shell: bash
83-
run: cargo install cargo-nextest cargo-llvm-cov --locked
84-
85-
- name: Test
86-
timeout-minutes: 20
87-
shell: bash
88-
run: |
89-
docker compose --project-directory ./tests/environment down -v
90-
cargo llvm-cov nextest --profile ci --workspace --lcov --output-path lcov.info
91-
92-
- name: Get docker logs on failure
93-
shell: bash
94-
if: failure()
95-
run: |
96-
docker compose --project-directory ./tests/environment logs
97-
98-
- name: Codecov - Upload coverage
99-
uses: codecov/codecov-action@v4
100-
with:
101-
token: ${{secrets.CODECOV_TOKEN}}
102-
files: lcov.info
103-
104-
- name: Codecov - Upload test results
105-
uses: codecov/test-results-action@v1
106-
with:
107-
token: ${{secrets.CODECOV_TOKEN}}
108-
61+
uses: famedly/backend-build-workflows/.github/workflows/rust-workflow.yml@a827bd99c2c419f20df08d19c1bab6118b532d22
62+
secrets: inherit

0 commit comments

Comments
 (0)