Skip to content

chore(deps,rust): update rust-lang.rust-analyzer #1134

chore(deps,rust): update rust-lang.rust-analyzer

chore(deps,rust): update rust-lang.rust-analyzer #1134

Workflow file for this run

---
name: Continuous Integration
on:
merge_group:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
flavor: ["cpp", "rust"]
steps:
# While the docker/build-push-action works from the Git context, we still need
# the checkout step for running our tests.
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
persist-credentials: false
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
file: .devcontainer/${{ matrix.flavor }}/Dockerfile
load: true
tags: ${{ github.repository }}-${{ matrix.flavor }}:test
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
if: matrix.flavor == 'cpp'
with:
path: test/.xwin-cache
key: xwin-cache
- name: Run Tests
run: |
set -Eeuo pipefail
docker run --rm --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock --mount type=bind,src="${{ github.workspace }}/.devcontainer/${{ matrix.flavor }}/test",dst=/ws -w /ws ${{ github.repository }}-${{ matrix.flavor }}:test bats --formatter junit testsuite.bats | tee test-report-${{ matrix.flavor }}.xml
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: always()
with:
name: test-results-${{ matrix.flavor }}
path: test-report-*.xml
publish-test:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
needs: build-test
if: always()
steps:
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
merge-multiple: true
- uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
with:
files: test-report-*.xml