I run a tests in GitLab PipeLine
sfdx force:apex:test:run --wait 10 --resultformat human --codecoverage --testlevel RunLocalTests
and get error
System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, portal account owner must have a role: []
If I understand correctly, an additional parameter is needed when creating a scratch org. Thanks to everyone who answers.