diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c2900b85db..adfbb8b43b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,10 +5,6 @@ on: paths-ignore: - 'docs/**' -env: - CODECOV_TOKEN: ${{ secrets.codecov }} - STRAPI_LICENSE: ${{ secrets.strapiLicense }} - jobs: lint: name: 'lint (node: ${{ matrix.node }})' @@ -30,6 +26,8 @@ jobs: name: 'unit_back (node: ${{ matrix.node }})' needs: [lint] runs-on: ubuntu-latest + env: + CODECOV_TOKEN: ${{ secrets.codecov }} strategy: matrix: node: [12, 14] @@ -49,6 +47,8 @@ jobs: name: 'unit_front (node: ${{ matrix.node }})' needs: [lint] runs-on: ubuntu-latest + env: + CODECOV_TOKEN: ${{ secrets.codecov }} strategy: matrix: node: [12, 14] @@ -206,6 +206,8 @@ jobs: runs-on: ubuntu-latest needs: [lint, unit_back, unit_front] name: '[EE] E2E (pg:${{ matrix.postgres }} node: ${{ matrix.node }})' + env: + STRAPI_LICENSE: ${{ secrets.strapiLicense }} strategy: matrix: node: [12, 14] @@ -244,11 +246,14 @@ jobs: run: | yarn run -s test:start-app & wait-on http://localhost:1337 yarn run -s test:e2e + if: github.event.pull_request.head.repo.full_name == github.repository e2e_ee_mysql: runs-on: ubuntu-latest needs: [lint, unit_back, unit_front] name: '[EE] E2E (mysql node: ${{ matrix.node }})' + env: + STRAPI_LICENSE: ${{ secrets.strapiLicense }} strategy: matrix: node: [12, 14] @@ -285,11 +290,14 @@ jobs: run: | yarn run -s test:start-app & wait-on http://localhost:1337 yarn run -s test:e2e + if: github.event.pull_request.head.repo.full_name == github.repository e2e_ee_sqlite: runs-on: ubuntu-latest needs: [lint, unit_back, unit_front] name: '[EE] E2E (sqlite node: ${{ matrix.node }})' + env: + STRAPI_LICENSE: ${{ secrets.strapiLicense }} strategy: matrix: node: [12, 14] @@ -309,11 +317,14 @@ jobs: run: | yarn run -s test:start-app & wait-on http://localhost:1337 yarn run -s test:e2e + if: github.event.pull_request.head.repo.full_name == github.repository e2e_ee_mongo: runs-on: ubuntu-latest needs: [lint, unit_back, unit_front] name: '[EE] E2E (mongo node: ${{ matrix.node }})' + env: + STRAPI_LICENSE: ${{ secrets.strapiLicense }} strategy: matrix: node: [12, 14] @@ -338,3 +349,4 @@ jobs: run: | yarn run -s test:start-app & wait-on http://localhost:1337 yarn run -s test:e2e + if: github.event.pull_request.head.repo.full_name == github.repository