mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 18:19:34 +00:00
scope env vars
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
parent
ab3489fba6
commit
f132bc1886
20
.github/workflows/tests.yml
vendored
20
.github/workflows/tests.yml
vendored
@ -5,10 +5,6 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
|
||||||
env:
|
|
||||||
CODECOV_TOKEN: ${{ secrets.codecov }}
|
|
||||||
STRAPI_LICENSE: ${{ secrets.strapiLicense }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: 'lint (node: ${{ matrix.node }})'
|
name: 'lint (node: ${{ matrix.node }})'
|
||||||
@ -30,6 +26,8 @@ jobs:
|
|||||||
name: 'unit_back (node: ${{ matrix.node }})'
|
name: 'unit_back (node: ${{ matrix.node }})'
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.codecov }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [12, 14]
|
node: [12, 14]
|
||||||
@ -49,6 +47,8 @@ jobs:
|
|||||||
name: 'unit_front (node: ${{ matrix.node }})'
|
name: 'unit_front (node: ${{ matrix.node }})'
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.codecov }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [12, 14]
|
node: [12, 14]
|
||||||
@ -206,6 +206,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, unit_back, unit_front]
|
needs: [lint, unit_back, unit_front]
|
||||||
name: '[EE] E2E (pg:${{ matrix.postgres }} node: ${{ matrix.node }})'
|
name: '[EE] E2E (pg:${{ matrix.postgres }} node: ${{ matrix.node }})'
|
||||||
|
env:
|
||||||
|
STRAPI_LICENSE: ${{ secrets.strapiLicense }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [12, 14]
|
node: [12, 14]
|
||||||
@ -244,11 +246,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn run -s test:start-app & wait-on http://localhost:1337
|
yarn run -s test:start-app & wait-on http://localhost:1337
|
||||||
yarn run -s test:e2e
|
yarn run -s test:e2e
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
|
||||||
e2e_ee_mysql:
|
e2e_ee_mysql:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, unit_back, unit_front]
|
needs: [lint, unit_back, unit_front]
|
||||||
name: '[EE] E2E (mysql node: ${{ matrix.node }})'
|
name: '[EE] E2E (mysql node: ${{ matrix.node }})'
|
||||||
|
env:
|
||||||
|
STRAPI_LICENSE: ${{ secrets.strapiLicense }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [12, 14]
|
node: [12, 14]
|
||||||
@ -285,11 +290,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn run -s test:start-app & wait-on http://localhost:1337
|
yarn run -s test:start-app & wait-on http://localhost:1337
|
||||||
yarn run -s test:e2e
|
yarn run -s test:e2e
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
|
||||||
e2e_ee_sqlite:
|
e2e_ee_sqlite:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, unit_back, unit_front]
|
needs: [lint, unit_back, unit_front]
|
||||||
name: '[EE] E2E (sqlite node: ${{ matrix.node }})'
|
name: '[EE] E2E (sqlite node: ${{ matrix.node }})'
|
||||||
|
env:
|
||||||
|
STRAPI_LICENSE: ${{ secrets.strapiLicense }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [12, 14]
|
node: [12, 14]
|
||||||
@ -309,11 +317,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn run -s test:start-app & wait-on http://localhost:1337
|
yarn run -s test:start-app & wait-on http://localhost:1337
|
||||||
yarn run -s test:e2e
|
yarn run -s test:e2e
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
|
||||||
e2e_ee_mongo:
|
e2e_ee_mongo:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, unit_back, unit_front]
|
needs: [lint, unit_back, unit_front]
|
||||||
name: '[EE] E2E (mongo node: ${{ matrix.node }})'
|
name: '[EE] E2E (mongo node: ${{ matrix.node }})'
|
||||||
|
env:
|
||||||
|
STRAPI_LICENSE: ${{ secrets.strapiLicense }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [12, 14]
|
node: [12, 14]
|
||||||
@ -338,3 +349,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn run -s test:start-app & wait-on http://localhost:1337
|
yarn run -s test:start-app & wait-on http://localhost:1337
|
||||||
yarn run -s test:e2e
|
yarn run -s test:e2e
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user