mirror of
https://github.com/rlespinasse/shortify-git-revision.git
synced 2026-05-17 10:15:27 +00:00
ci: remove concurrency when not vital
This commit is contained in:
98
.github/workflows/shortify-git-revision.yaml
vendored
98
.github/workflows/shortify-git-revision.yaml
vendored
@@ -1,58 +1,12 @@
|
||||
name: Shortify git revision testing
|
||||
name: Shortify Git Revision
|
||||
on: [push]
|
||||
jobs:
|
||||
error-testing-on-os:
|
||||
os-testing:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
concurrency:
|
||||
group: error-testing-on-os-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: this-action
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
# Test 1
|
||||
- name: Continue on error
|
||||
uses: ./this-action
|
||||
with:
|
||||
name: ROOT_COMMIT
|
||||
revision: 88428f56bd9d2751c47106bedfd148162dfa50b8
|
||||
continue-on-error: true
|
||||
- name: Validate // Continue on error
|
||||
run: |
|
||||
[[ "${{ env.ROOT_COMMIT }}" == "" ]]
|
||||
[[ "${{ env.ROOT_COMMIT_SHORT }}" == "" ]]
|
||||
shell: bash
|
||||
|
||||
# Test 2
|
||||
- name: Short on error
|
||||
uses: ./this-action
|
||||
with:
|
||||
name: ROOT_COMMIT
|
||||
revision: 88428f56bd9d2751c47106bedfd148162dfa50b8
|
||||
short-on-error: true
|
||||
length: 7
|
||||
- name: Validate // Short on error
|
||||
run: |
|
||||
[[ "${{ env.ROOT_COMMIT }}" == "88428f56bd9d2751c47106bedfd148162dfa50b8" ]]
|
||||
[[ "${{ env.ROOT_COMMIT_SHORT }}" == "88428f5" ]]
|
||||
shell: bash
|
||||
|
||||
shortify-git-revision-on-os:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
concurrency:
|
||||
group: shortify-git-revision-on-os-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -180,13 +134,53 @@ jobs:
|
||||
[[ "${{ env.WRONGFULLY_SIZED_REVISION_SHORT }}" == "88428f5" ]]
|
||||
shell: bash
|
||||
|
||||
shortify-git-revision-release:
|
||||
error-os-testing:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: this-action
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
# Test 1
|
||||
- name: Continue on error
|
||||
uses: ./this-action
|
||||
with:
|
||||
name: ROOT_COMMIT
|
||||
revision: 88428f56bd9d2751c47106bedfd148162dfa50b8
|
||||
continue-on-error: true
|
||||
- name: Validate // Continue on error
|
||||
run: |
|
||||
[[ "${{ env.ROOT_COMMIT }}" == "" ]]
|
||||
[[ "${{ env.ROOT_COMMIT_SHORT }}" == "" ]]
|
||||
shell: bash
|
||||
|
||||
# Test 2
|
||||
- name: Short on error
|
||||
uses: ./this-action
|
||||
with:
|
||||
name: ROOT_COMMIT
|
||||
revision: 88428f56bd9d2751c47106bedfd148162dfa50b8
|
||||
short-on-error: true
|
||||
length: 7
|
||||
- name: Validate // Short on error
|
||||
run: |
|
||||
[[ "${{ env.ROOT_COMMIT }}" == "88428f56bd9d2751c47106bedfd148162dfa50b8" ]]
|
||||
[[ "${{ env.ROOT_COMMIT_SHORT }}" == "88428f5" ]]
|
||||
shell: bash
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: shortify-git-revision-release-${{ github.ref }}
|
||||
group: release-${{ github.ref }}
|
||||
needs:
|
||||
- error-testing-on-os
|
||||
- shortify-git-revision-on-os
|
||||
- os-testing
|
||||
- error-os-testing
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
Reference in New Issue
Block a user