Skip to content

Commit

Permalink
github(workflow): add test cases for different environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hoefer committed Dec 22, 2020
1 parent f55be14 commit f94df80
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 4 deletions.
50 changes: 47 additions & 3 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:
branches: [ main ]

jobs:
test:
name: Test

test-ubuntu:
name: Test Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -21,6 +22,48 @@ jobs:
- name: Test
run: ./gradlew test --stacktrace

test-windows-16:
name: Test Windows 2016
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 14
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test
run: ./gradlew test --stacktrace

test-windows-19:
name: Test Windows 2019
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 14
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test
run: ./gradlew test --stacktrace

test-macos:
name: Test macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 14
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test
run: ./gradlew test --stacktrace

quality:
name: Quality
runs-on: ubuntu-latest
Expand All @@ -39,7 +82,8 @@ jobs:

build:
needs:
- test
- test-ubuntu
- test-macOS
- quality
name: Build
runs-on: ubuntu-latest
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,30 @@ jobs:
name: debian-distribution
path: ./build/compose/binaries/main/deb/ck3-workbench_${{ steps.latest_tag.outputs.tag }}-1_amd64.deb

windows_build-16:
if: "false"
needs: build
name: Windows Build 2016
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 15
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create Debian Distribution
run: ./gradlew packageMsi
- name: Latest Tag
id: latest_tag
uses: "WyriHaximus/github-action-get-previous-tag@master"
- name: Upload Windows Artifact
uses: actions/upload-artifact@v2
with:
name: windows-distribution
path: build\compose\binaries\main\msi\ck3-workbench-${{ steps.latest_tag.outputs.tag }}.msi

macos_build:
needs: build
name: macOS Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CharacterScriptExporterTest : ShouldSpec({
val characterScriptExporter = CharacterScriptExporter()

// TODO: disabled but needs to be fixed for windows environment
xshould("export characters from state manager to script txt file") {
should("export characters from state manager to script txt file") {
StateManager.characters.addAll(
listOf(
CharacterTemplate.DEFAULT_CHARACTER,
Expand Down

0 comments on commit f94df80

Please sign in to comment.