Skip to content

Commit

Permalink
ci: test case to check if the git repo is dirty
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
  • Loading branch information
cpanato authored and mbestavros committed Sep 9, 2021
1 parent 88d6a0f commit 49363e8
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,32 @@ jobs:
uses: ./
- name: Check install!
run: cosign version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
test_existing_release_action:
runs-on: ubuntu-latest
name: Install existing release of Cosign and test presence in path
steps:
- uses: actions/checkout@v2
- name: Install Cosign
uses: sigstore/cosign-installer@v1.1.0
- name: Check install!
run: cosign version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
test_cosign_action_custom:
runs-on: ubuntu-latest
Expand All @@ -23,6 +49,14 @@ jobs:
cosign-release: 'v0.2.0'
- name: Check install!
run: cosign version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
test_cosign_action_0_6_0:
runs-on: ubuntu-latest
Expand All @@ -35,6 +69,14 @@ jobs:
cosign-release: 'v0.6.0'
- name: Check install!
run: cosign version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
test_cosign_action_0_6_0_with_pre_installed_libpcsclite1_package:
runs-on: ubuntu-latest
Expand All @@ -51,6 +93,14 @@ jobs:
cosign-release: 'v0.6.0'
- name: Check install!
run: cosign version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
test_cosign_action_wrong:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 49363e8

Please sign in to comment.