File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222jobs :
2323 lint :
2424 runs-on : ubuntu-latest
25- container :
26- image : ghcr.io/eclipse-score/devcontainer:v1.2.0
2725 continue-on-error : true
2826 steps :
2927 - name : Checkout repository
3028 uses : actions/checkout@v4.2.2
3129
32- - name : Give User permissions to write
33- run : |
34- chown -R vscode:vscode "$GITHUB_WORKSPACE"
35-
36- - name : Run Linter Script
37- run : |
38- WS="$GITHUB_WORKSPACE"
39- su -l vscode -c "
40- set -euo pipefail
41- uv tool install pre-commit
42- cd '$WS'
43- bazel run //:ide_support
44- git config --global --add safe.directory '$WS'
45- git rev-parse --show-toplevel
46- pre-commit run -a
47- "
30+ - name : Build and run dev container task
31+ uses : devcontainers/ci@v0.3
32+ with :
33+ imageName : ghcr.io/eclipse-score/devcontainer:v1.2.0
34+ runCmd : pre-commit run -a
35+ # - name: Give User permissions to write
36+ # run: |
37+ # chown -R vscode:vscode "$GITHUB_WORKSPACE"
38+ #
39+ # - name: Run Linter Script
40+ # run: |
41+ # WS="$GITHUB_WORKSPACE"
42+ # su -l vscode -c "
43+ # set -euo pipefail
44+ # uv tool install pre-commit
45+ # cd '$WS'
46+ # git config --global --add safe.directory '$WS'
47+ # git rev-parse --show-toplevel
48+ # pre-commit run -a
49+ # "
Original file line number Diff line number Diff line change 1919jobs :
2020 code :
2121 runs-on : ubuntu-latest
22+ container :
23+ image : ghcr.io/eclipse-score/devcontainer:v1.2.0
2224 steps :
2325 - name : Checkout repository
2426 uses : actions/checkout@v4.2.2
3840 bazelisk-cache : true
3941 - name : Run test targets
4042 run : |
41- bazel run //:ide_support
42- bazel test //src/...
43+ WS="$GITHUB_WORKSPACE"
44+ su -l vscode -c "
45+ cd '$WS'
46+ bazel run //:ide_support
47+ bazel test //src/...
48+ "
4349
4450 - name : Prepare bundled consumer report
4551 if : always()
You can’t perform that action at this time.
0 commit comments