Add test action

This commit is contained in:
Webber
2019-11-03 00:05:49 +01:00
parent 40901bd410
commit 3e12ecce57
6 changed files with 64 additions and 2 deletions

5
.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
# ignore all files by default
*
# include required actions with exceptions
!test/

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.DS_Store
.idea/

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2019 Dick Webbink Copyright (c) 2019-present Webber Takken <webber@takken.io>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,2 +1,40 @@
# unity-actions # Unity Actions
Github actions for testing and building Unity projects (WIP) 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: .
```

14
test/Dockerfile Normal file
View File

@@ -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 <webber@takken.io>"
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

3
test/entrypoint.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh -l
sh -c "echo Testing project in folder $FOLDER"