mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
chore: add --skip-nx-cache
chore: update api tests chore: fix vercel chore: formatting pls chore: dont use run chore: add correct command chore: add correct command
This commit is contained in:
parent
2c917f23ca
commit
e39a165a01
2
.github/actions/run-api-tests/script.sh
vendored
2
.github/actions/run-api-tests/script.sh
vendored
@ -10,6 +10,6 @@ export JWT_SECRET="aSecret"
|
||||
|
||||
opts=($DB_OPTIONS)
|
||||
|
||||
yarn run build:ts
|
||||
yarn nx run-many --target=build:ts --nx-ignore-cycles --skip-nx-cache
|
||||
yarn run test:generate-app "${opts[@]}"
|
||||
yarn run test:api --no-generate-app
|
||||
|
||||
22
.github/workflows/tests.yml
vendored
22
.github/workflows/tests.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
- uses: nrwl/nx-set-shas@v3
|
||||
- run: yarn install --immutable
|
||||
- name: Run build:ts
|
||||
run: yarn nx run-many --target=build:ts --nx-ignore-cycles
|
||||
run: yarn nx run-many --target=build:ts --nx-ignore-cycles --skip-nx-cache
|
||||
- name: Run lint
|
||||
run: yarn nx affected --target=lint --parallel --nx-ignore-cycles
|
||||
|
||||
@ -63,7 +63,7 @@ jobs:
|
||||
- uses: nrwl/nx-set-shas@v3
|
||||
- run: yarn install --immutable
|
||||
- name: Run build:ts
|
||||
run: yarn nx run-many --target=build:ts --nx-ignore-cycles
|
||||
run: yarn nx run-many --target=build:ts --nx-ignore-cycles --skip-nx-cache
|
||||
- name: Run tests
|
||||
run: yarn nx affected --target=test:unit --nx-ignore-cycles
|
||||
|
||||
@ -86,7 +86,7 @@ jobs:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- uses: nrwl/nx-set-shas@v3
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- name: Run test
|
||||
run: yarn nx affected --target=test:front --nx-ignore-cycles
|
||||
|
||||
@ -106,7 +106,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- name: Build
|
||||
run: yarn build --projects=@strapi/admin,@strapi/helper-plugin
|
||||
|
||||
@ -145,7 +145,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- uses: ./.github/actions/run-api-tests
|
||||
with:
|
||||
dbOptions: '--dbclient=postgres --dbhost=localhost --dbport=5432 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
||||
@ -183,7 +183,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- uses: ./.github/actions/run-api-tests
|
||||
with:
|
||||
dbOptions: '--dbclient=mysql --dbhost=localhost --dbport=3306 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
||||
@ -220,7 +220,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- uses: ./.github/actions/run-api-tests
|
||||
with:
|
||||
dbOptions: '--dbclient=mysql --dbhost=localhost --dbport=3306 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
||||
@ -242,7 +242,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- uses: ./.github/actions/run-api-tests
|
||||
env:
|
||||
SQLITE_PKG: ${{ matrix.sqlite_pkg }}
|
||||
@ -288,7 +288,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- uses: ./.github/actions/run-api-tests
|
||||
with:
|
||||
dbOptions: '--dbclient=postgres --dbhost=localhost --dbport=5432 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
||||
@ -330,7 +330,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- uses: ./.github/actions/run-api-tests
|
||||
with:
|
||||
dbOptions: '--dbclient=mysql --dbhost=localhost --dbport=3306 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
||||
@ -356,7 +356,7 @@ jobs:
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn install --immutable
|
||||
- uses: ./.github/actions/run-api-tests
|
||||
env:
|
||||
SQLITE_PKG: ${{ matrix.sqlite_pkg }}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"silent": true,
|
||||
"autoJobCancelation": true
|
||||
},
|
||||
"installCommand": "yarn setup",
|
||||
"installCommand": "yarn install --immutable",
|
||||
"ignoreCommand": "git diff HEAD^ HEAD --quiet './packages/core/helper-plugin'",
|
||||
"outputDirectory": "packages/core/helper-plugin/storybook-static"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user