Skip to content

Commit

Permalink
test: run cocogitto-action in a container
Browse files Browse the repository at this point in the history
verify whether cocogitto-action can work when run in a container
Use the github runner base image, which is the
same as the github hosted  ubuntu-latest
  • Loading branch information
joshua-clayton committed Feb 20, 2025
1 parent ed62593 commit 4994faa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,21 @@ jobs:
git commit -m "docs: add Mona Lisa docs"
- name: Run cocogitto-action
uses: ./cocogitto-action
test-container:
runs-on: ubuntu-latest
container:
image: ghcr.io/actions/actions-runner:latest
steps:
- uses: actions/checkout@v4
with:
path: cocogitto-action
- name: Initialise repository
run: |
git init
echo "# Mona Lisa" > README.md
git config --global user.name "Mona Lisa"
git config --global user.email "[email protected]"
git add README.md
git commit -m "docs: add Mona Lisa docs"
- name: Run cocogitto-action
uses: ./cocogitto-action

0 comments on commit 4994faa

Please sign in to comment.