mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-21 20:41:39 +02:00
Run tests for releases too
This commit is contained in:
parent
9a947b73cf
commit
63da1d9cd4
2
.github/workflows/docker-compose-test.yml
vendored
2
.github/workflows/docker-compose-test.yml
vendored
@ -16,7 +16,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: 1.21
|
go-version: 1.21
|
||||||
- name: Docker Compose setup
|
- name: Docker Compose setup
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@ -31,7 +30,6 @@ jobs:
|
|||||||
./hishtory install
|
./hishtory install
|
||||||
- name: Docker Compose test
|
- name: Docker Compose test
|
||||||
shell: bash -il {0}
|
shell: bash -il {0}
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
|
||||||
run: |
|
run: |
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
export HISHTORY_SERVER=http://localhost
|
export HISHTORY_SERVER=http://localhost
|
||||||
|
16
.github/workflows/go-test.yml
vendored
16
.github/workflows/go-test.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: 1.21
|
go-version: 1.21
|
||||||
- name: Linux Setup
|
- name: Linux Setup
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') && matrix.os == 'ubuntu-latest'}}
|
if: ${{ matrix.os == 'ubuntu-latest'}}
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
# Install our dependencies
|
# Install our dependencies
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
# Set a consistent hostname so we can run tests that depend on it
|
# Set a consistent hostname so we can run tests that depend on it
|
||||||
sudo hostname ghaction-runner-hostname
|
sudo hostname ghaction-runner-hostname
|
||||||
- name: MacOS Setup
|
- name: MacOS Setup
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') && matrix.os == 'macos-latest'}}
|
if: ${{ matrix.os == 'macos-latest'}}
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
# Install our dependencies
|
# Install our dependencies
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
# Set a consistent hostname so we can run tests that depend on it
|
# Set a consistent hostname so we can run tests that depend on it
|
||||||
sudo scutil --set HostName ghaction-runner-hostname
|
sudo scutil --set HostName ghaction-runner-hostname
|
||||||
- name: MacOS Docker Setup
|
- name: MacOS Docker Setup
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') && matrix.os == 'macos-latest'}}
|
if: ${{ matrix.os == 'macos-latest'}}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
# Install docker so it can be used for datadog
|
# Install docker so it can be used for datadog
|
||||||
@ -52,12 +52,18 @@ jobs:
|
|||||||
colima start
|
colima start
|
||||||
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
|
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
|
||||||
- name: Set up Datadog
|
- name: Set up Datadog
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') && github.ref == 'refs/heads/master' }}
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
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
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
|
||||||
env:
|
env:
|
||||||
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user