-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
204 changed files
with
4,021 additions
and
2,237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,70 @@ | ||
# Labels for solutions | ||
solution/platform: | ||
- 'src/Altinn.Platform/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/Altinn.Platform/**/*' | ||
|
||
solution/app-backend: | ||
- 'src/studio/AppTemplates/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/studio/AppTemplates/**/*' | ||
|
||
solution/studio/designer: | ||
- 'backend/**/*' | ||
- 'frontend/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: ['backend/**/*', 'frontend/**/*'] | ||
|
||
solution/studio/repos: | ||
- 'gitea/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'gitea/**/*' | ||
|
||
# Labels for areas | ||
area/app-deploy: | ||
- 'frontend/app-development/features/appPublish/**/*' | ||
- 'frontend/app-development/sharedResources/appDeployment/**/*' | ||
- 'backend/src/Designer/Controllers/DeploymentsController.cs' | ||
- 'src/studio/AppTemplates/AspNet/deployment/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: ['frontend/app-development/features/appPublish/**/*', 'frontend/app-development/sharedResources/appDeployment/**/*', 'backend/src/Designer/Controllers/DeploymentsController.cs', 'src/studio/AppTemplates/AspNet/deployment/**/*'] | ||
|
||
area/dashboard: | ||
- 'frontend/dashboard/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'frontend/dashboard/**/*' | ||
|
||
area/data-modeling: | ||
- 'frontend/packages/schema-editor/**/*' | ||
- 'frontend/packages/schema-model/**/*' | ||
- 'frontend/app-development/features/dataModelling/**/*' | ||
- 'backend/src/DataModeling/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: ['frontend/packages/schema-editor/**/*', 'frontend/packages/schema-model/**/*', 'frontend/app-development/features/dataModelling/**/*', 'backend/src/DataModeling/**/*'] | ||
|
||
area/pdf: | ||
- 'src/Altinn.Platform/Altinn.Platform.PDF/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/Altinn.Platform/Altinn.Platform.PDF/**/*' | ||
|
||
area/resource-registry: | ||
- 'frontend/resourceAdm/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'frontend/resourceAdm/**/*' | ||
|
||
area/test: | ||
- 'src/test/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/test/**/*' | ||
|
||
area/text-editor: | ||
- 'frontend/packages/text-editor/**' | ||
- 'frontend/app-development/features/textEditor/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: ['frontend/packages/text-editor/**', 'frontend/app-development/features/textEditor/**/*'] | ||
|
||
area/process: | ||
- 'frontend/app-development/features/processEditor/**/*' | ||
- 'frontend/packages/process-editor/**/*' | ||
- 'backend/src/Designer/**/*ProcessesModeling*.cs' | ||
- changed-files: | ||
- any-glob-to-any-file: ['frontend/app-development/features/processEditor/**/*', 'frontend/packages/process-editor/**/*', 'backend/src/Designer/**/*ProcessesModeling*.cs'] | ||
|
||
area/ui-editor: | ||
- 'frontend/packages/ux-editor/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'frontend/packages/ux-editor/**/*' | ||
|
||
area/studio-root: | ||
- 'frontend/studio-root/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: 'frontend/studio-root/**/*' | ||
|
||
## Other labels | ||
kind/dependencies: | ||
- 'backend/packagegroups/NuGet.props' | ||
- 'frontend/**/package.json' | ||
- changed-files: | ||
- any-glob-to-any-file: ['backend/packagegroups/NuGet.props', 'frontend/**/package.json'] | ||
|
||
quality/testing: | ||
- 'frontend/testing/**/*' | ||
- 'backend/tests/**/*' | ||
- 'testdata/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: ['frontend/testing/**/*', 'backend/tests/**/*', 'testdata/**/*'] | ||
|
||
skip-releasenotes: | ||
- '.github/**/*' | ||
- '.husky/**/*' | ||
- '.vscode/**/*' | ||
- '.yarn/**/*' | ||
- 'testdata/**/*' | ||
- 'development/**/*' | ||
- 'src/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: ['.github/**/*', '.husky/**/*', '.vscode/**/*', '.yarn/**/*', 'testdata/**/*', 'development/**/*', 'src/**/*'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
|
||
<!--- Describe your changes in detail --> | ||
|
||
## Related Issue(s) | ||
|
||
- #{issue number} | ||
|
||
## Verification | ||
|
||
- [ ] **Your** code builds clean without any errors or warnings | ||
- [ ] Manual testing done (required) | ||
- [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) | ||
- [ ] Cypress tests run green locally (https://github.com/Altinn/altinn-studio/tree/master/frontend/testing/cypress#run-altinn-studio-tests) | ||
|
||
## Documentation | ||
|
||
- [ ] User documentation is updated with a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs) (if applicable) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Cypress tests on pr | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- 'frontend/**' | ||
- '!frontend/stats/**' | ||
- 'backend/**' | ||
- '.github/workflows/run-cypress-on-pr.yaml' | ||
- 'docker-compose.yml' | ||
- 'Dockerfile' | ||
- 'gitea/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cypress-tests: | ||
name: Build environment and run e2e test | ||
timeout-minutes: 25 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: Generate .env file | ||
run: | | ||
echo CYPRESS_TEST_APP=autodeploy-v3 >> .env | ||
echo DEVELOP_APP_DEVELOPMENT=0 >> .env | ||
echo DEVELOP_RESOURCE_ADMIN=0 >> .env | ||
echo DEVELOP_BACKEND=0 >> .env | ||
echo DEVELOP_DASHBOARD=0 >> .env | ||
echo DEVELOP_PREVIEW=0 >> .env | ||
echo GITEA_ADMIN_PASS=g9wDIG@6gf >> .env | ||
echo GITEA_ADMIN_USER=localg1iteaadmin >> .env | ||
echo GITEA_CYPRESS_USER=cypress_testuser >> .env | ||
echo GITEA_CYPRESS_PASS=g9wDIG@6gf >> .env | ||
echo GITEA_ORG_USER=ttd >> .env | ||
echo POSTGRES_PASSWORD=kyeDIG@eip >> .env | ||
echo COMMIT= >> .env | ||
echo IGNORE_DOCKER_DNS_LOOKUP=true >> .env | ||
- name: Build all images | ||
run: | | ||
docker compose build --no-cache | ||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
|
||
- name: Run setup.js script | ||
run: | | ||
node ./development/setup.js | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v5 | ||
with: | ||
install: true | ||
working-directory: frontend/testing/cypress | ||
env: environment=local | ||
spec: src/integration/studio/*.js | ||
record: false | ||
parallel: false | ||
|
||
- name: Stop compose file | ||
if: always() | ||
run: docker-compose down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
backend/src/DataModeling/Converter/Csharp/CsharpCompilationException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Altinn.Studio.DataModeling.Converter.Csharp; | ||
|
||
public class CsharpCompilationException : Exception | ||
{ | ||
|
||
public List<string> CustomErrorMessages { get; } | ||
|
||
/// <inheritdoc/> | ||
public CsharpCompilationException(string message, List<string> customErrorMessages) : base(message) | ||
{ | ||
CustomErrorMessages = customErrorMessages; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.