Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
---
name: test cancel
name: test container
on: pull_request
jobs:
foo:
timeout-minutes: 30
container-test-job:
runs-on: ubuntu-latest
permissions:
packages: read
container:
image: ghcr.io/suzuki-shunsuke/test-github-action-2:0.0.2
steps:
- run: sleep 1
bar:
timeout-minutes: 30
runs-on: ubuntu-latest
needs: [foo]
if: failure()
steps:
- run: exit 1
- run: whoami
- uses: actions/checkout@v4
- run: ls -lh
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM debian:bookworm-20240701
RUN apt-get update
RUN apt-get install -y git
RUN useradd -u 1000 foo
USER foo
ENTRYPOINT ["tail", "-f", "/dev/null"]