Aaron Trudeau
139a8b1b78
Revert "TEMP console log project folder"
...
This reverts commit 411ec51817
.
2022-05-10 23:46:31 -04:00
Aaron Trudeau
411ec51817
TEMP console log project folder
2022-05-10 22:53:52 -04:00
Aaron Trudeau
793451abba
Merge remote-tracking branch 'upstream/main'
2022-04-26 11:55:45 -04:00
Nick Maltbie
96562463cf
Code Coverage Support ( #182 )
...
* Added basic framework for enable code coverage
* Added basic coverage results building and combination
* fixed ENABLE_CODE_COVERAGE to be `true` or `false`
* Added code coverage project to manifest
* Updated to add more tests for code coverage build
* Updated coverage parameter documentation
* Fixed small syntax error
* Enabled code coverage flag for code coverage tests
* Fixed error in test file build
* Updated project run settings
* Fixed error when creating combined code coverage results
* Updated testing workflows
* updated test workflows
* Updated parameters and added tests
* Updated tests and bash script for running
* Updated run_tests.sh script to simplfy some parameters
* Updated run_tests to remove incorrect ';'
* Updated run_tests script
* Fixed small syntax error
* Fixed for loop in run_tests.sh
* Updated run_tests syntax error for '=' operator
* Fixed runTests variable assignment
* Fixed parameters for running tests via bash
* Corrected bash arguments
* Updated test cases in main.yml
* Updated parameter names and default values for code coverage
* Fixed broken paths for coverage results upload in main.yml
* Corrected names of coverage results artifacts
2022-04-21 10:50:37 +02:00
Webber Takken
67402dce6f
feat: upgrade to images of version 1 (rolling tag) ( #179 )
...
* feat: upgrade to images of version 1 (rolling tag)
* fix: broken husky hook
2022-04-03 17:59:11 +02:00
Paul Pacheco
50a3bd4138
perf: avoid creating temporary docker image ( #177 )
...
* avoid building custom image
* Rebuild
* fix wrong folder for entrypoint.sh
* run with bash
* fix path to bash
* Mount with permissions
* Rebuild
* add missing continuation
* rebuild
* Fix docker invocation
* delete unused code
* Fix test
* remove old comment
* Fix code styles
Co-authored-by: Webber Takken <webber.nl@gmail.com>
2022-04-03 12:14:39 +02:00
Aaron Trudeau
2fe4078c8d
Revert "TEMP log image in use"
...
This reverts commit 95722dcab4
.
2022-03-30 19:55:22 -04:00
Aaron Trudeau
95722dcab4
TEMP log image in use
2022-03-30 19:54:37 -04:00
Paul Pacheco
f87ed30c30
feat: work with rootless docker ( #175 )
...
Running docker currently mounts the docker.sock file into the container.
This was introduced in d6c937fe37
but
there is no explanation provided.
The docker.sock file is only needed if we want to run docker inside the container
to create other images or start other containers.
I searched through the code and I did not find any such use.
In particular, on fedora this gives permission denied because docker.sock
is owned by root and the container runs under an unprivileged user.
One has to change the permissions of docker.sock
(which is actually a link to /run/podman/podman.sock) to be writeable by the user.
If we don't need to use docker inside the containers, then we can remove this file,
thus we can run this GitHub action as an unprivileged user out of the box.
2022-03-27 03:03:16 +02:00
Aaron Trudeau
7338fb9975
merge main and fix no-abbreviation eslint error
2022-03-25 14:00:00 -04:00
Paul Pacheco
33bc4be9fa
fix: operation not permitted in self hosted runners ( #172 )
...
Self hosted runners in fedora make the docker.sock a link to /run/podman/podman.sock
Trying to set the :z on docker.sock seems to cause:
```
Error: lsetxattr /var/run/docker.sock: operation not permitted
Error: The process '/usr/bin/docker' failed with exit code 126
```
I think the :z may be broken for links? hard to tell.
2022-03-23 14:14:44 +01:00
Paul Pacheco
79715c7e78
feat: support self-hosted runners ( #170 )
...
* feat: support self-hosted runners
similar to https://github.com/game-ci/unity-builder/pull/355
* Use $RUNNER_TEMP variable instead of hardcoded path for _github_home and _github_workflow
* create the folders if they don't exist
* mount volumes with :z for compatibility with SELinux
* compile typescript files
2022-03-11 18:46:28 +01:00
Aaron Trudeau
441ad80ded
add error for missing tests folder
2022-03-01 01:19:09 -05:00
Aaron Trudeau
a04ac8389d
move package name validation to TS part of action
2022-02-28 22:26:50 -05:00
Aaron Trudeau
2a1d0bf088
add packageMode option back in
2022-01-17 11:50:44 -05:00
Aaron Trudeau
19b81ef90a
remove duplicate command
2022-01-17 10:51:43 -05:00
Aaron Trudeau
6da30c5538
Merge branch 'main' of https://github.com/game-ci/unity-test-runner into game-ci-main
2022-01-17 10:24:33 -05:00
David Finol
aa7a119f32
Updated GitHub dependencies to restore checks functionality ( #159 )
...
* Fix checks
* Update packages
2022-01-11 07:44:47 -06:00
David Finol
6b2660eabd
Fix paths
2022-01-11 06:32:54 -06:00
David Finol
cdfccd0aad
Refactor to typescript ( #158 )
...
* Refactor to typescript
* Fix platform and workflow
* Fix workflow and platform
* Update husky and image-tag
* Use 'yarn lint-staged' instead of 'npx lint-staged'
2022-01-11 05:52:29 -06:00
David Finol
8a69fc6be3
Sync input with documentation ( #155 )
2022-01-01 14:38:47 -06:00
Webber Takken
79e50e3e4f
allow space in between words of project name ( #151 )
...
Co-authored-by: David Finol <davidmfinol@gmail.com>
2021-11-10 13:30:58 +01:00
Robin
576ef39bb6
add private github package support using personal access token ( #152 )
...
* add private github package support using pat
* add index.js after yarn build
* shift gitcrediental step before run_tests
2021-11-03 10:25:06 +01:00
Michal Cichra
a2b1ed6631
show console output in the GitHub Check annotations ( #149 )
...
The annotation raw details now include console output (if available) and stack trace.
2021-10-21 15:53:41 -05:00
Aaron Trudeau
1a54f845f3
Add new input and basic test
2021-10-21 00:10:08 -04:00
Aaron Trudeau
d9147cdc1d
Fix failing test's Docker image
2021-10-20 23:32:32 -04:00
Aaron Trudeau
f9b95906a6
remove silent setting from docker test
2021-10-20 02:02:41 -04:00
Jason Millard
dfd8e1e91f
update findAnnotationPoint to use first entry with non-zero line number ( #138 )
...
* update findAnnotationPoint to use first entry with non-zero line number
* misc: improve comment in findAnnotationPoint
2021-07-22 19:22:55 +02:00
Jason Millard
c56b66a41b
input: add support for tildes in folder names ( #135 )
2021-07-20 17:39:53 +02:00
David Finol
6838fda7a4
Improve error message ( #132 )
2021-07-01 06:39:05 -05:00
David Finol
cf55f1c921
Fix workflow error ( #128 )
...
* Fix workflow error
Add checks for annotation.message and annotation.raw_details
* Fix workflow error
* Fix error when using Assert.Fail()
2021-05-30 18:52:46 -05:00
ivan-hernandez-scopely
19661e2da7
Using SSH_AUTH_SOCK (ssh agent forwarding) to pull upm private repos ( #124 )
...
* using SSH_AUTH_SOCK (ssh agent forwarding) to pull upm private repos
* sshAgent as input parameter
* yarn run prettier --write "src/**/*.{js,ts}"
* yarn run lint --fix && yarn build
* reverted results-meta.ts (changed because ran prettier --check "src/**/*.js" without && eslint src)
* removed RUN apt-get update && apt-get install -y openssh-client. This change needs to be done upstream. See game-ci/docker#117
2021-05-28 23:55:58 +02:00
David Finol
0674feac28
Fix workflow error ( #125 )
...
* Fix workflow error
Add checks for annotation.message and annotation.raw_details
* Fix workflow error
2021-05-23 17:22:53 -05:00
Webber Takken
1fcc491cbe
Accept PascalCase for testmodes EditMode and PlayMode ( #115 )
...
* Accept PascalCase for testmodes EditMode and PlayMode
* update index
2021-05-09 18:35:40 +02:00
David Finol
fffbf11b2a
Small results-check refactor for debugging ( #104 )
...
* Small results-check refactor for debugging
* Fix #103
2021-03-06 00:55:03 -06:00
David Finol
215f660c06
Check GitHub token ( #99 )
...
* Reeplace createCheck option with check for githubToken
* Fix index.js
2021-02-28 00:44:56 -06:00
David Finol
43d90c252f
Feature/create check ( #97 )
2021-02-27 12:13:19 -06:00
Vladimir Kryukov
2656f4e108
Cherry pick try-catch block to output results if build is failing ( #90 )
2021-01-17 21:55:27 +01:00
Vladimir Kryukov
26807aaf05
Dependency bump ( #88 )
...
* Bump all dependencies to the latest versions
* Fix prettifier configuration after bump; Fix issues found by new versions of prettifier & eslint;
* Add information about yarn lint & test into CONTRIBUTING.md; Add better description of `yarn build` step in the pipeline
2021-01-11 01:05:18 +01:00
David Finol
0c3e710069
Get unityVersion from ProjectVersion.txt ( #84 )
2020-12-28 12:02:31 +01:00
mob-sakai
a067c3d5ab
fix: parameter 'customImage' is not working ( #83 )
2020-12-17 14:30:51 +01:00
Devashish Lal
31cd755121
docker repo migrated ( #77 )
2020-11-26 18:19:17 +01:00
mob-sakai
29899d84e8
feat: support custom image
2020-11-26 14:15:18 +01:00
Collin Dauphinee
a4e8475a2f
Adding useHostNetwork option
2020-04-02 12:29:34 +02:00
litefeel
7c1cba9a39
Change UNITY_LICENSE_PATH to UNITY_LICENSE_FILE
2020-03-09 23:57:17 +01:00
litefeel
29e179f50b
Add UNITY_LICENSE_PATH
2020-03-09 23:57:17 +01:00
Webber
5423e61ad7
fix custom parameters
2020-02-01 20:45:21 +01:00
Webber
b181c9cdbe
Add missing env
2020-01-31 01:15:59 +01:00
Webber
a18b837919
Update and test folder regex
2020-01-31 01:15:59 +01:00
Webber
24fe88806a
Save the best for last
2020-01-31 01:15:59 +01:00