diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41410c2..f3123cc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,12 @@ name: Actions 😎 on: push: { branches: [main] } - pull_request_target: + pull_request: paths-ignore: - - ".github/**" + - '.github/**' + +env: + UNITY_LICENSE: "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \nm0Db8UK+ktnOLJBtHybkfetpcKo=o/pUbSQAukz7+ZYAWhnA0AJbIlyyCPL7bKVEM2lVqbrXt7cyey+umkCXamuOgsWPVUKBMkXtMH8L\n5etLmD0getWIhTGhzOnDCk+gtIPfL4jMo9tkEuOCROQAXCci23VFscKcrkB+3X6h4wEOtA2APhOY\nB+wvC794o8/82ffjP79aVAi57rp3Wmzx+9pe9yMwoJuljAy2sc2tIMgdQGWVmOGBpQm3JqsidyzI\nJWG2kjnc7pDXK9pwYzXoKiqUqqrut90d+kQqRyv7MSZXR50HFqD/LI69h68b7P8Bjo3bPXOhNXGR\n9YCoemH6EkfCJxp2gIjzjWW+l2Hj2EsFQi8YXw==" jobs: tests: @@ -37,18 +40,10 @@ jobs: ########################### # Checkout # ########################### - - name: Checkout (default) + - name: Checkout uses: actions/checkout@v2 - if: github.event.event_type != 'pull_request_target' with: lfs: true - - name: Checkout (pull_request_target) - uses: actions/checkout@v2 - if: github.event.event_type == 'pull_request_target' - with: - lfs: true - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} ########################### # Cache # @@ -67,8 +62,6 @@ jobs: testMode: ${{ matrix.testMode }} artifactsPath: ${{ matrix.testMode }}-artifacts customParameters: -profile SomeProfile -someBoolean -someValue exampleValue - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - uses: actions/upload-artifact@v2 with: name: Test results for ${{ matrix.testMode }} @@ -89,18 +82,9 @@ jobs: ########################### # Checkout # ########################### - - name: Checkout (default) - uses: actions/checkout@v2 - if: github.event.event_type != 'pull_request_target' + - uses: actions/checkout@v2 with: lfs: true - - name: Checkout (pull_request_target) - uses: actions/checkout@v2 - if: github.event.event_type == 'pull_request_target' - with: - lfs: true - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} ########################### # Cache # @@ -122,8 +106,6 @@ jobs: unityVersion: ${{ matrix.unityVersion }} testMode: all # Test implicit artifactsPath, by not setting it - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} # Upload artifacts - name: Upload test results @@ -147,18 +129,9 @@ jobs: ########################### # Checkout # ########################### - - name: Checkout (default) - uses: actions/checkout@v2 - if: github.event.event_type != 'pull_request_target' + - uses: actions/checkout@v2 with: lfs: true - - name: Checkout (pull_request_target) - uses: actions/checkout@v2 - if: github.event.event_type == 'pull_request_target' - with: - lfs: true - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} ########################### # Cache # @@ -180,8 +153,6 @@ jobs: unityVersion: ${{ matrix.unityVersion }} testMode: editmode artifactsPath: artifacts/editmode - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} # Upload artifacts - name: Upload test results @@ -205,18 +176,9 @@ jobs: ########################### # Checkout # ########################### - - name: Checkout (default) - uses: actions/checkout@v2 - if: github.event.event_type != 'pull_request_target' + - uses: actions/checkout@v2 with: lfs: true - - name: Checkout (pull_request_target) - uses: actions/checkout@v2 - if: github.event.event_type == 'pull_request_target' - with: - lfs: true - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} ########################### # Cache # @@ -238,8 +200,6 @@ jobs: unityVersion: ${{ matrix.unityVersion }} testMode: playmode artifactsPath: artifacts/playmode - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} # Upload artifacts - name: Upload test results @@ -263,18 +223,9 @@ jobs: ########################### # Checkout # ########################### - - name: Checkout (default) - uses: actions/checkout@v2 - if: github.event.event_type != 'pull_request_target' + - uses: actions/checkout@v2 with: lfs: true - - name: Checkout (pull_request_target) - uses: actions/checkout@v2 - if: github.event.event_type == 'pull_request_target' - with: - lfs: true - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} ########################### # Cache # @@ -295,8 +246,6 @@ jobs: unityVersion: ${{ matrix.unityVersion }} testMode: editmode artifactsPath: artifacts/editmode - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} # Configure second test runner - name: Tests in playmode 📺 @@ -306,8 +255,6 @@ jobs: unityVersion: ${{ matrix.unityVersion }} testMode: playmode artifactsPath: artifacts/playmode - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} # Upload combined artifacts - name: Upload combined test results