mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-28 20:19:07 +08:00
Add test action
This commit is contained in:
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
||||
# ignore all files by default
|
||||
*
|
||||
|
||||
# include required actions with exceptions
|
||||
!test/
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.DS_Store
|
||||
.idea/
|
||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
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
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
40
README.md
40
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: .
|
||||
```
|
||||
|
||||
14
test/Dockerfile
Normal file
14
test/Dockerfile
Normal 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
3
test/entrypoint.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh -l
|
||||
|
||||
sh -c "echo Testing project in folder $FOLDER"
|
||||
Reference in New Issue
Block a user