-
-
Notifications
You must be signed in to change notification settings - Fork 73
Add new GitHub Actions pipeline for frontend #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,29 @@ | ||
| name: frontend | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| ci: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Extract versions from pom.xml | ||
| id: extract_versions | ||
| run: | | ||
| NODE_VERSION=$(sed -n 's/.*<node.version>\(.*\)<\/node.version>.*/\1/p' pom.xml) | ||
| NPM_VERSION=$(sed -n 's/.*<npm.version>\(.*\)<\/npm.version>.*/\1/p' pom.xml) | ||
| echo "NODE_VERSION=$NODE_VERSION" >> "$GITHUB_ENV" | ||
| echo "NPM_VERSION=$NPM_VERSION" >> "$GITHUB_ENV" | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "${{ env.NODE_VERSION }}" | ||
| cache: "npm" | ||
| - run: npm install --global 'npm@${{ env.NPM_VERSION }}' | ||
| - run: npm ci | ||
| - run: npm run lint | ||
| - run: npm run build | ||
| - run: npm test |
This file contains hidden or 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 hidden or 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,12 +1,8 @@ | ||
| /* | ||
| !/src | ||
| /src/* | ||
| !/src/main | ||
| !/src/main/ | ||
| /src/main/* | ||
| !/src/main/frontend | ||
| !/package.json | ||
| !/tsconfig.json | ||
| !/.prettierrc.json | ||
| !/eslint.config.js | ||
| !/vite.config.ts | ||
| !/vitest.config.ts | ||
| !/src/main/frontend/ | ||
|
|
||
| /.mvn/* | ||
| /Jenkinsfile | ||
| /pom.xml |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -38,10 +38,6 @@ | |
| <node.version>22.15.0</node.version> | ||
| <npm.version>11.3.0</npm.version> | ||
| <spotless.check.skip>false</spotless.check.skip> | ||
|
|
||
| <!-- Opt in to Jenkins handling eslint results --> | ||
| <maven.test.failure.ignore>false</maven.test.failure.ignore> | ||
| <frontend.testFailureIgnore>${maven.test.failure.ignore}</frontend.testFailureIgnore> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this also has the benefit that check annotations show up in the GitHub UI which is a nice feature, so not sure if we want to remove this |
||
| </properties> | ||
|
|
||
| <dependencyManagement> | ||
|
|
||
This file contains hidden or 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 hidden or 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,15 +1,10 @@ | ||
| import { defineConfig } from "vitest/config"; | ||
| import path from "node:path"; | ||
|
|
||
| export default defineConfig({ | ||
| test: { | ||
| root: "src/main/frontend", | ||
| globals: true, | ||
| environment: "jsdom", | ||
| setupFiles: ["setupTests.ts"], | ||
| outputFile: path.resolve( | ||
| import.meta.dirname, | ||
| "target/surefire-reports/vitest-junit.xml", | ||
| ), | ||
| }, | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we still want this to be run through the maven build so that a full build is tested for both java and javascript.
People can skip the running of the tests easily with e.g.
quick-buildprofile and on CI I don't think it matters much