Skip to content

Commit

Permalink
Merge pull request #6 from kahsez/feature/add-cd
Browse files Browse the repository at this point in the history
Feature/add continuous delivery
  • Loading branch information
kahsez authored Jan 31, 2021
2 parents 4146123 + 65693f8 commit bca11b9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on:
push: { branches: [master] }

env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE_2020_1_13 }}

jobs:
buildAndTestForSomePlatforms:
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- ./
unityVersion:
- 2020.1.13f1
targetPlatform:
- StandaloneWindows64 # Build a Windows 64-bit standalone.
steps:
- uses: actions/[email protected]
with:
lfs: true
- uses: actions/[email protected]
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}
restore-keys: |
Library-${{ matrix.projectPath }}-
Library-
- uses: game-ci/[email protected]
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
- uses: actions/[email protected]
with:
name: Build
path: build
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ The demo includes a simple RTS.

Developed by Katia Galera and José Manuel Vera Menárguez

## CI
I have created a workflow to [run the tests](https://github.com/kahsez/ai4g-RTS/blob/master/.github/workflows/run_tests.yml) during pull request step. To do that I have used [Unity actions](https://github.com/game-ci/unity-actions) that uses [Unity3D docker](https://gitlab.com/gableroux/unity3d) images from [GabLeRoux](https://github.com/GabLeRoux).
## CI/CD
I have created a workflow to [run the tests](https://github.com/kahsez/ai4g-RTS/blob/master/.github/workflows/run_tests.yml) during pull request step and other to [build](https://github.com/kahsez/ai4g-RTS/blob/master/.github/workflows/build.yml) and archive the project when merges to master. To do that I have used [Unity actions](https://github.com/game-ci/unity-actions) that uses [Unity3D docker](https://gitlab.com/gableroux/unity3d) images from [GabLeRoux](https://github.com/GabLeRoux).

## Static analyzer
I have used [Sonar cloud](https://sonarcloud.io/dashboard?id=kahsez_ai4g-RTS) as a static code analyzer to generate reports every time there is a push to the master branch. To do that I have used the [MirrorNG](https://github.com/MirrorNG/unity-runner) version of [game-ci/unity-test-runner](https://github.com/game-ci/unity-test-runner).
Expand Down

0 comments on commit bca11b9

Please sign in to comment.