Enable devcontainer in Workflows #954
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ******************************************************************************* | |
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | |
| # | |
| # See the NOTICE file(s) distributed with this work for additional | |
| # information regarding copyright ownership. | |
| # | |
| # This program and the accompanying materials are made available under the | |
| # terms of the Apache License Version 2.0 which is available at | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # ******************************************************************************* | |
| name: Run Bazel Tests | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| workflow_call: | |
| jobs: | |
| code: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.2.2 | |
| - name: Build and run dev container task | |
| uses: devcontainers/ci@v0.3 | |
| with: | |
| cacheFrom: ghcr.io/eclipse-score/devcontainer@v1.2.0 | |
| push: never | |
| runCmd: | | |
| bazel run //:ide_support | |
| bazel test //src/... | |
| mkdir -p tests-report | |
| rsync -amL --include='*/' --include='test.xml' --include='test.log' --exclude='*' bazel-testlogs/ tests-report/ | |
| - name: Upload bundled consumer report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tests-report | |
| path: tests-report |