Skip to content

Commit 8a554b5

Browse files
Testing other-action
1 parent d117ba4 commit 8a554b5

2 files changed

Lines changed: 28 additions & 20 deletions

File tree

.github/workflows/lint.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,28 @@ on:
2222
jobs:
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+
# "

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
jobs:
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
@@ -38,8 +40,12 @@ jobs:
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()

0 commit comments

Comments
 (0)