diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e66476c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + +jobs: + test: + name: Unity Tests Workflow + runs-on: ubuntu-latest + steps: + # Checkout + - name: Checkout Repository + uses: actions/checkout@v2 + with: + lfs: true + + # Test + - name: Run Tests + id: testRunner + uses: webbertakken/unity-test-runner@v1.3 + with: + projectPath: . + unityVersion: 2019.4.11f1 + + # Test Results + - name: Upload Test Results + uses: actions/upload-artifact@v1 + with: + name: Test results + path: ${{ steps.testRunner.outputs.artifactsPath }} diff --git a/README.md b/README.md index 341b872..2daa55b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Unity Scriptable Objects [![Unity 2019.4+](https://img.shields.io/badge/unity-2019.4%2B-blue.svg)](https://unity3d.com/get-unity/download) +[![Actions Status](https://github.com/chark/unity-scriptable-objects/workflows/CI/badge.svg)](https://github.com/chark/unity-scriptable-objects/actions) This package provides utilities for implementing game architecture which is oriented around `ScriptableObject` assets and game events. Most of these ideas are based on [Unite2017](https://github.com/roboryantron/Unite2017).