From 3e12ecce57a80ec4c074ec461469a3320cced93a Mon Sep 17 00:00:00 2001 From: Webber Date: Sun, 3 Nov 2019 00:05:49 +0100 Subject: [PATCH] Add test action --- .dockerignore | 5 +++++ .gitignore | 2 ++ LICENSE | 2 +- README.md | 40 +++++++++++++++++++++++++++++++++++++++- test/Dockerfile | 14 ++++++++++++++ test/entrypoint.sh | 3 +++ 6 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 test/Dockerfile create mode 100644 test/entrypoint.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8192196 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +# ignore all files by default +* + +# include required actions with exceptions +!test/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af56f61 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +.idea/ diff --git a/LICENSE b/LICENSE index 7bfb255..2835022 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Dick Webbink +Copyright (c) 2019-present Webber Takken Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 6b0b4e8..a0ee6bd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,40 @@ -# unity-actions +# Unity Actions Github actions for testing and building Unity projects (WIP) + +Feel free to contribute. + +## Jobs + +- [ ] Checkout project +- [ ] Open project in Unity +- [ ] Install dependencies +- [ ] Perform test suite +- [ ] Select scene(s) +- [ ] Build scene(s) + +## Platforms + +- [ ] WebGL +- [ ] Windows +- [ ] Linux +- [ ] MacOS +- [ ] Android +- [ ] iOS + +## How to use + +Add the following yaml to your workflow in `.github/workflows/main.yml` + +```yaml +name: Testing and building my Unity project +on: push +jobs: + test: + name: Hello world action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: webbertakken/unity-actions/test@master + env: + FOLDER: . +``` diff --git a/test/Dockerfile b/test/Dockerfile new file mode 100644 index 0000000..6b333c2 --- /dev/null +++ b/test/Dockerfile @@ -0,0 +1,14 @@ +FROM gableroux/unity3d:2019.2.11f1-webgl + +LABEL "com.github.actions.name"="Unity project test" +LABEL "com.github.actions.description"="Test unity project" +LABEL "com.github.actions.icon"="box" +LABEL "com.github.actions.color"="gray-dark" + +LABEL "repository"="http://github.com/webbertakken/unity-actions" +LABEL "homepage"="http://github.com/webbertakken/unity-actions" +LABEL "maintainer"="Webber Takken " + +ADD entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/test/entrypoint.sh b/test/entrypoint.sh new file mode 100644 index 0000000..565a919 --- /dev/null +++ b/test/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "echo Testing project in folder $FOLDER"