mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-29 02:08:53 +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 ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
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:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
needs: extra-delay
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, macos-14]
|
os: [ubuntu-latest, macos-latest, macos-14]
|
||||||
@ -58,13 +69,6 @@ jobs:
|
|||||||
uses: datadog/agent-github-action@v1.3
|
uses: datadog/agent-github-action@v1.3
|
||||||
with:
|
with:
|
||||||
api_key: ${{ secrets.DD_API_KEY }}
|
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
|
- name: Go test
|
||||||
env:
|
env:
|
||||||
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
||||||
|
Loading…
Reference in New Issue
Block a user