Skip to content

Commit

Permalink
Ensure action fails when used so users are pointed to updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKahr committed Dec 23, 2023
1 parent 0ae5da4 commit 760b55e
Show file tree
Hide file tree
Showing 25 changed files with 26,501 additions and 4,310 deletions.
18 changes: 14 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{
"plugins": ["jest", "@typescript-eslint", "prettier", "unicorn"],
"extends": ["plugin:unicorn/recommended", "plugin:github/recommended", "prettier"],
"extends": [
"plugin:unicorn/recommended",
"plugin:github/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
"ecmaVersion": 2020,
"sourceType": "module",
"extraFileExtensions": [".mjs"],
"ecmaFeatures": {
"impliedStrict": true
},
"project": "./tsconfig.json"
},
"env": {
"node": true,
Expand All @@ -17,6 +26,7 @@
"import/no-namespace": "off",
"filenames/match-regex": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-module": "off"
"unicorn/prefer-module": "off",
"i18n-text/no-en": "off"
}
}
32 changes: 11 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Actions 😎
on:
pull_request: {}
push: { branches: [main] }
pull_request:
push:

jobs:
tests:
Expand All @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 20.x
- run: yarn
- run: yarn lint
- run: yarn test
Expand All @@ -21,30 +21,20 @@ jobs:
requestManualActivationFile:
name: Request manual activation file 🔑
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2018.4.15f1
- 2019.2.11f1
- 2019.2.14f1
- 2019.2.17f1
# - 2020.1.0a15
steps:
# Checkout repository (required to test local actions)
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Request manual activation file
- name: Request manual activation file
id: getManualLicenseFile
continue-on-error: true
uses: ./
with:
unityVersion: ${{ matrix.unityVersion }}

# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v2
with:
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
- name: Verify error
run: |
if [ "${{ steps.getManualLicenseFile.outcome }}" != "failure" ]; then
echo "Expected failure, got ${{ steps.getManualLicenseFile.outcome }}"
exit 1
fi
14 changes: 2 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
name: 'Unity - Request Activation File'
author: Webber Takken <[email protected]>
description: 'Request the manual activation file for acquiring a Unity personal license.'
description: '[DEPRECATED] Request the manual activation file for acquiring a Unity personal license.'
inputs:
unityVersion:
required: false
default: '2019.2.11f1'
description: 'Version of unity to use for building the project.'
customImage:
required: false
default: ''
description: 'Specific docker image that should be used to request activation file'
outputs:
filePath:
description: 'Path of the manual activation file'
branding:
icon: 'box'
color: 'gray-dark'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
15 changes: 0 additions & 15 deletions dist/Dockerfile

This file was deleted.

58 changes: 0 additions & 58 deletions dist/entrypoint.sh

This file was deleted.

Loading

0 comments on commit 760b55e

Please sign in to comment.