Skip to content

Commit

Permalink
Combine build, setup server, and test into one job to simplify for now
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonklaus committed Nov 13, 2024
1 parent 7fe7c4c commit 2b441c0
Showing 1 changed file with 39 additions and 16 deletions.
55 changes: 39 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,43 @@ on:
required: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
#build:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
#
# steps:
# - uses: actions/checkout@v4
# - name: Setup .NET
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 6.0.x
# - name: Restore dependencies
# run: dotnet restore /p:EnableWindowsTargeting=true
# #- name: Install dependencies
# # run: dotnet add package NeoLua --version 1.3.14
# - name: Build
# run: dotnet build --configuration Release --no-restore /p:EnableWindowsTargeting=true
#
# - name: Publish
# run: dotnet publish -c Release -o ../publish
#
# - name: Send files to test jobs
# uses: actions/upload-artifact@v3
# with:
# name: AerospikeClient.dll
# path: ./AerospikeClient/bin/Debug/*.whl

test-ee:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2

- uses: ./.github/actions/run-ee-server
with:
use-server-rc: ${{ contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
docker-hub-username: ${{ secrets.DOCKER_HUB_BOT_USERNAME }}
docker-hub-password: ${{ secrets.DOCKER_HUB_BOT_PW }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
Expand All @@ -40,17 +70,10 @@ jobs:
#- name: Install dependencies
# run: dotnet add package NeoLua --version 1.3.14
- name: Build
run: dotnet build --no-restore /p:EnableWindowsTargeting=true

test-ee:
runs-on: ubuntu-latest
needs: build
steps:
- uses: ./.github/actions/run-ee-server
with:
use-server-rc: ${{ contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
docker-hub-username: ${{ secrets.DOCKER_HUB_BOT_USERNAME }}
docker-hub-password: ${{ secrets.DOCKER_HUB_BOT_PW }}
run: dotnet build --configuration Release --no-restore /p:EnableWindowsTargeting=true

- name: Publish
run: dotnet publish -c Release -o ../publish

- name: Run tests
run: dotnet test --no-build --verbosity normal
Expand Down

0 comments on commit 2b441c0

Please sign in to comment.