Skip to content

Commit

Permalink
ci: Use new docker-supporting backend workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly committed Feb 5, 2025
1 parent faf18a0 commit 142289a
Showing 1 changed file with 3 additions and 48 deletions.
51 changes: 3 additions & 48 deletions .github/workflows/rust-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,51 +58,6 @@ jobs:
run: typos --exclude '*.key' --exclude '*.crt' --exclude '*.csr' --exclude '*.srl'

tests:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4

- uses: famedly/backend-build-workflows/.github/actions/rust-prepare@main
with:
gitlab_ssh: ${{ secrets.CI_SSH_PRIVATE_KEY}}
gitlab_user: ${{ secrets.GITLAB_USER }}
gitlab_pass: ${{ secrets.GITLAB_PASS }}

- name: Add llvm-tools rust component
run: rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu

- name: Caching
uses: Swatinem/rust-cache@68b3cb7503c78e67dae8373749990a220eb65352
with:
cache-on-failure: true
cache-all-crates: true

- name: Install additional cargo tooling
shell: bash
run: cargo install cargo-nextest cargo-llvm-cov --locked

- name: Test
timeout-minutes: 20
shell: bash
run: |
docker compose --project-directory ./tests/environment down -v
cargo llvm-cov nextest --profile ci --workspace --lcov --output-path lcov.info
- name: Get docker logs on failure
shell: bash
if: failure()
run: |
docker compose --project-directory ./tests/environment logs
- name: Codecov - Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: lcov.info

- name: Codecov - Upload test results
uses: codecov/test-results-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}

uses: famedly/backend-build-workflows/.github/workflows/rust-workflow.yml@a41638bae003d12786a787dd1fd07ac811fb9e48
with:
secrets: inherit

0 comments on commit 142289a

Please sign in to comment.