mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-28 17:59:01 +01:00
Move extra delay to a separate job to avoid wasting GH action quota by sleeping in duplicated jobs
This commit is contained in:
parent
514d95ba4e
commit
f19e31978b
18
.github/workflows/go-test.yml
vendored
18
.github/workflows/go-test.yml
vendored
@ -9,8 +9,19 @@ on:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
extra-delay:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Extra Delay
|
||||
if: ${{ startsWith(github.event.head_commit.message, 'Release') }}
|
||||
run: |
|
||||
|
||||
# If this is a release, then sleep for before starting the tests so that the newest version is released
|
||||
# and pushed to the updated server before we run the tests
|
||||
sleep 1200 # 20 minutes
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
needs: extra-delay
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, macos-14]
|
||||
@ -58,13 +69,6 @@ jobs:
|
||||
uses: datadog/agent-github-action@v1.3
|
||||
with:
|
||||
api_key: ${{ secrets.DD_API_KEY }}
|
||||
- name: Extra Delay
|
||||
if: ${{ startsWith(github.event.head_commit.message, 'Release') }}
|
||||
run: |
|
||||
|
||||
# If this is a release, then sleep for before starting the tests so that the newest version is released
|
||||
# and pushed to the updated server before we run the tests
|
||||
sleep 1200 # 20 minutes
|
||||
- name: Go test
|
||||
env:
|
||||
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
||||
|
Loading…
Reference in New Issue
Block a user