Skip to content

Commit

Permalink
Merge pull request #709 from Webperf-se/software-json-move
Browse files Browse the repository at this point in the history
Moved software-*.json to defaults folder
  • Loading branch information
7h3Rabbit authored Nov 9, 2024
2 parents 05cf830 + c6f1db7 commit 1c68860
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prep-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
paths:
- "software-full.json"
- "**software-full.json"
- "Dockerfile"
schedule:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-a11y-statement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-email.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-google-lighthouse-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-pa11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-sitespeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/regression-test-software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-sources.json'
- '**software-sources.json'
- '**update-software.yml'
- 'Dockerfile'
- '**regression-test-docker-image.yml'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-standard-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-webbkoll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression-test-ylt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**software-full.json'
- '**software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update-software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ jobs:
This pull request is used to make it easier to keep the software definitions up to date.
Following files may be touched:
- software-sources.json
- software-full.json
- defaults/software-sources.json
- defaults/software-full.json
- defaults/software-rules.json
- defaults/settings.json
- defaults/mdn-rules.json
- CREDITS.md
assignees: 7h3Rabbit
reviewers: 7h3Rabbit
add-paths: |
software-sources.json
software-full.json
defaults/software-sources.json
defaults/software-full.json
defaults/software-rules.json
defaults/settings.json
defaults/mdn-rules.json
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion helpers/credits_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_credits(global_translation):
base_directory = os.path.join(Path(os.path.dirname(
os.path.realpath(__file__)) + os.path.sep).parent)

software_full_path = os.path.join(base_directory, 'software-full.json')
software_full_path = os.path.join(base_directory, 'defaults', 'software-full.json')
softwares = None
with open(software_full_path, encoding='utf-8') as json_input_file:
tmp = json.load(json_input_file)
Expand Down
4 changes: 2 additions & 2 deletions tests/software.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def get_softwares():

file_path = f'{base_directory}{os.path.sep}data{os.path.sep}software-full.json'
if not os.path.isfile(file_path):
file_path = f'{base_directory}{os.path.sep}software-full.json'
file_path = f'{base_directory}{os.path.sep}defaults{os.path.sep}software-full.json'
if not os.path.isfile(file_path):
print("ERROR: No software-full.json file found!")
return {
Expand All @@ -623,7 +623,7 @@ def add_known_software_source(name, source_type, match, url):

file_path = f'{base_directory}{os.path.sep}data{os.path.sep}software-sources.json'
if not os.path.isfile(file_path):
file_path = f'{base_directory}{os.path.sep}software-sources.json'
file_path = f'{base_directory}{os.path.sep}defaults{os.path.sep}software-sources.json'
if not os.path.isfile(file_path):
print("ERROR: No software-sources.json file found!")
return
Expand Down

0 comments on commit 1c68860

Please sign in to comment.