-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix badge for workflow in readme.md #108
Merged
Gerwoud
merged 16 commits into
development
from
enhancements/documentation/workflow-badge
Mar 14, 2024
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
adebfa3
test example workflow
Gerwoud 27310a4
check if push argument works
Gerwoud c96f021
does the value update test
Gerwoud 2f5ae52
Create ci-test-backend.yaml
Gerwoud c858693
added backend badge to readme
Gerwoud 8590d65
changed yml to yaml
Gerwoud 82934ee
changed tests to test
Gerwoud df9d792
added seperate files for linter and tests for both front and backend
Gerwoud 20f3cad
gave correct names to workflows
Gerwoud 33ec720
correct names to run name
Gerwoud d73dac4
removed code dupe and pray for test run
Gerwoud 3f4d226
added both badges for linter and tests from backend
Gerwoud e5da8d8
file changes detected?
Gerwoud 17d31db
removed unused code parts
Gerwoud 03f9fc8
fix: eslint not found error
Gerwoud d6a8546
added frontend badges
Gerwoud 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 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,19 @@ | ||
name: UGent-3-backend-linter | ||
run-name: ${{ github.actor }} is running backend linter 🚀 | ||
on: [pull_request] | ||
jobs: | ||
Backend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
|
||
- name: Run linting | ||
working-directory: ./backend | ||
run: find . -type f -name "*.py" | xargs pylint | ||
|
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,27 @@ | ||
name: UGent-3-frontend-linter | ||
run-name: ${{ github.actor }} is running frontend linter 🚀 | ||
on: [pull_request] | ||
jobs: | ||
Frontend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
working-directory: ./frontend | ||
run: npm i eslint | ||
|
||
- name: Run linting | ||
working-directory: ./frontend | ||
run: npm run lint | ||
|
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,24 @@ | ||
name: UGent-3-backend-test | ||
run-name: ${{ github.actor }} is running backend tests 🚀 | ||
on: [pull_request] | ||
jobs: | ||
Backend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
working-directory: ./backend | ||
run: pip3 install -r requirements.txt && pip3 install -r dev-requirements.txt | ||
|
||
- name: Running tests | ||
working-directory: ./backend | ||
run: bash ./run_tests.sh | ||
|
||
|
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,35 @@ | ||
name: UGent-3-frontend-test | ||
run-name: ${{ github.actor }} is running frontend tests 🚀 | ||
on: [pull_request] | ||
jobs: | ||
Frontend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
working-directory: ./frontend | ||
run: npm ci | ||
|
||
- name: Build | ||
working-directory: ./frontend | ||
run: npm run build | ||
|
||
- name: Preview Web App | ||
working-directory: ./frontend | ||
run: npm run preview & | ||
|
||
- name: Running tests | ||
working-directory: ./frontend | ||
run: npm test | ||
|
This file was deleted.
Oops, something went wrong.
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
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.
Also add the badges in front-end
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.
d6a8546