Skip to content

Commit

Permalink
Merge pull request #6 from samsmithnz/testing-upgrade
Browse files Browse the repository at this point in the history
Adding self testing workflow
  • Loading branch information
samsmithnz authored Sep 27, 2022
2 parents e7d2b75 + 3edf00e commit 35cee7b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,27 @@ jobs:
echo "Version: ${{ steps.gitversion.outputs.SemVer }}"
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
# checkout the code from this branch, and then test the action from here
test:
runs-on: ubuntu-latest
steps:
- name: checkout the code from this branch
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Test this repo
uses: samsmithnz/lead-time-for-changes@main
uses: ./ # the ./ runs the action.yml in this repo
with:
workflows: 'CI'
- name: Test elite repo with PAT Token, using last commit method (no dev time)
uses: samsmithnz/lead-time-for-changes@main
uses: ./
with:
workflows: 'Feature Flags CI/CD'
owner-repo: 'samsmithnz/SamsFeatureFlags'
commit-counting-method: 'last'
pat-token: "${{ secrets.PATTOKEN }}"
- name: Test elite repo with PAT Token, using first commit method (including dev time)
uses: samsmithnz/lead-time-for-changes@main
uses: ./
with:
workflows: 'Feature Flags CI/CD'
owner-repo: 'samsmithnz/SamsFeatureFlags'
Expand All @@ -53,6 +61,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
- test
if: github.ref == 'refs/heads/main'
steps:
- name: Display GitVersion outputs
Expand Down

0 comments on commit 35cee7b

Please sign in to comment.