Skip to content

Commit 02f1548

Browse files
committed
removed alif files. only NXP
1 parent 57afd12 commit 02f1548

1,200 files changed

Lines changed: 15096 additions & 10295 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/copilot-instructions.md

Lines changed: 32 additions & 165 deletions
Large diffs are not rendered by default.
Lines changed: 93 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,103 @@
1-
name: Check Code Quality (Legacy - Disabled)
1+
name: Check Code Quality
22

3-
# LEGACY WORKFLOW - This workflow has been replaced by spell-and-link-check.yml
4-
# Kept for reference only. Tests are disabled.
53
on:
6-
# Scheduled runs disabled - use spell-and-link-check.yml instead
7-
# schedule:
8-
# - cron: '0 6 * * *'
4+
# run once a day at 6AM UTC
5+
schedule:
6+
- cron: '0 6 * * *'
97

10-
# Manual runs only for backward compatibility
8+
# Allows you to run this workflow manually from the Actions tab
119
workflow_dispatch:
1210

1311
jobs:
14-
legacy_notice:
12+
check_content:
1513
runs-on: ubuntu-latest
1614

1715
steps:
18-
- name: Legacy Workflow Notice
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: true
20+
fetch-depth: 0
21+
22+
- name: Setup Hugo
23+
uses: peaceiris/actions-hugo@v3
24+
with:
25+
hugo-version: '0.130.0'
26+
extended: true
27+
28+
- name: Build
29+
run: |
30+
hugo --minify
31+
bin/pagefind --site "public"
32+
33+
- name: Check HTML links
34+
continue-on-error: true
35+
run: bin/htmltest -c .htmltest.yml -s 2>&1 | tee htmltest.log
36+
37+
- name: HTML test results
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: htmltest-report
41+
path: htmltest.log
42+
retention-days: 5 # Default is 90 days
43+
44+
- name: Spell check
45+
continue-on-error: true
46+
uses: rojopolis/spellcheck-github-actions@0.40.0
47+
with:
48+
config_path: .spellcheck.yml
49+
task_name: Markdown
50+
output_file: spellcheck-output.txt
51+
52+
- name: Refine spelling results
53+
continue-on-error: true
54+
run: tools/process-spelling.sh
55+
56+
- name: Spelling results
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: spellcheck-output
60+
path: spellcheck-output.txt
61+
retention-days: 5 # Default is 90 days
62+
- name: Scan for profanities
63+
run: |
64+
pip install better_profanity
65+
python tools/profanity.py
66+
cat profanity_log.txt
67+
68+
- name: Export profanities
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: profanities
72+
path: profanity_log.txt
73+
retention-days: 5
74+
75+
- name: Scan for malware
1976
run: |
20-
echo "⚠️ This workflow is legacy and has been replaced."
21-
echo ""
22-
echo "Please use the new 'spell-and-link-check.yml' workflow instead."
23-
echo "This workflow contains additional checks (profanity, malware, security)"
24-
echo "that are no longer active in the daily scheduled runs."
25-
echo ""
26-
echo "To run these checks manually, uncomment the specific job below."
27-
exit 0
28-
29-
# Uncomment individual jobs below if you need to run them manually
30-
# check_content:
31-
# runs-on: ubuntu-latest
32-
#
33-
# steps:
34-
# - name: Checkout
35-
# uses: actions/checkout@v4
36-
# with:
37-
# submodules: true
38-
# fetch-depth: 0
39-
#
40-
# - name: Setup Hugo
41-
# uses: peaceiris/actions-hugo@v3
42-
# with:
43-
# hugo-version: '0.130.0'
44-
# extended: true
45-
#
46-
# - name: Build
47-
# run: |
48-
# hugo --minify
49-
# bin/pagefind --site "public"
50-
#
51-
# - name: Check HTML links
52-
# continue-on-error: true
53-
# run: bin/htmltest -c .htmltest.yml -s 2>&1 | tee htmltest.log
54-
#
55-
# - name: HTML test results
56-
# uses: actions/upload-artifact@v4
57-
# with:
58-
# name: htmltest-report
59-
# path: htmltest.log
60-
# retention-days: 5
61-
#
62-
# - name: Spell check
63-
# continue-on-error: true
64-
# uses: rojopolis/spellcheck-github-actions@0.40.0
65-
# with:
66-
# config_path: .spellcheck.yml
67-
# task_name: Markdown
68-
# output_file: spellcheck-output.txt
69-
#
70-
# - name: Refine spelling results
71-
# continue-on-error: true
72-
# run: tools/process-spelling.sh
73-
#
74-
# - name: Spelling results
75-
# uses: actions/upload-artifact@v4
76-
# with:
77-
# name: spellcheck-output
78-
# path: spellcheck-output.txt
79-
# retention-days: 5
80-
#
81-
# - name: Scan for profanities
82-
# run: |
83-
# pip install better_profanity
84-
# python tools/profanity.py
85-
# cat profanity_log.txt
86-
#
87-
# - name: Export profanities
88-
# uses: actions/upload-artifact@v4
89-
# with:
90-
# name: profanities
91-
# path: profanity_log.txt
92-
# retention-days: 5
93-
#
94-
# - name: Scan for malware
95-
# run: |
96-
# tools/install-scan.sh
97-
# clamscan -r -i public -l scanlog
98-
#
99-
# - name: Scan results
100-
# uses: actions/upload-artifact@v4
101-
# with:
102-
# name: clamscan-log
103-
# path: scanlog
104-
# retention-days: 5
105-
#
106-
# - name: Azure DevOps Security Scan
107-
# uses: actions/setup-dotnet@v4
108-
# with:
109-
# dotnet-version: |
110-
# 5.0.x
111-
# 6.0.x
112-
#
113-
# - name: Run Microsoft Security DevOps
114-
# uses: microsoft/security-devops-action@latest
115-
# id: msdo
116-
# with:
117-
# tools: container-mapping, bandit, eslint, templateanalyzer
118-
#
119-
# - name: Upload results to Security tab
120-
# uses: actions/upload-artifact@v4
121-
# with:
122-
# path: ${{ steps.msdo.outputs.sarifFile }}
123-
# retention-days: 5
77+
tools/install-scan.sh
78+
clamscan -r -i public -l scanlog
79+
80+
- name: Scan results
81+
uses: actions/upload-artifact@v4
82+
with:
83+
name: clamscan-log
84+
path: scanlog
85+
retention-days: 5 # Default is 90 days
86+
87+
- name: Azure DevOps Security Scan
88+
uses: actions/setup-dotnet@v4
89+
with:
90+
dotnet-version: |
91+
5.0.x
92+
6.0.x
93+
- name: Run Microsoft Security DevOps
94+
uses: microsoft/security-devops-action@latest
95+
id: msdo
96+
with:
97+
tools: container-mapping, bandit, eslint, templateanalyzer
98+
99+
- name: Upload results to Security tab
100+
uses: actions/upload-artifact@v4
101+
with:
102+
path: ${{ steps.msdo.outputs.sarifFile }}
103+
retention-days: 5 # Default is 90 days

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
- name: Build
7070
run: |
7171
hugo --minify
72+
cp learn-image-sitemap.xml public/learn-image-sitemap.xml
7273
bin/pagefind.aarch64 --site "public"
7374
env:
7475
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}

.github/workflows/last-reviewed-cron.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ permissions:
1717

1818
jobs:
1919
sweep:
20-
if: github.repository == 'ArmDeveloperEcosystem/arm-learning-paths'
2120
runs-on: ubuntu-latest
2221
steps:
2322
- name: Move items based on Last Reviewed Date

.github/workflows/roadmap-update.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,13 @@ jobs:
171171
console.log('Start Date field not found');
172172
}
173173
} else if (labelName === 'publish') {
174-
// Publish Date
175-
const publishDateFieldId = await getFieldId(projectId, 'Publish Date');
176-
if (publishDateFieldId) {
177-
await updateDateField(projectId, itemId, publishDateFieldId, today);
174+
const endDateFieldId = await getFieldId(projectId, 'Publish Date');
175+
if (endDateFieldId) {
176+
await updateDateField(projectId, itemId, endDateFieldId, today);
178177
console.log('Updated Publish Date to', today);
179178
} else {
180179
console.log('Publish Date field not found');
181180
}
182-
183-
// Last Reviewed Date (same as Publish Date)
184-
const lastReviewedFieldId = await getFieldId(projectId, 'Last Reviewed Date');
185-
if (lastReviewedFieldId) {
186-
await updateDateField(projectId, itemId, lastReviewedFieldId, today);
187-
console.log('Updated Last Reviewed Date to', today);
188-
} else {
189-
console.log('Last Reviewed Date field not found');
190-
}
191181
} else {
192182
console.log('No action taken for label:', labelName);
193183
}
@@ -197,4 +187,4 @@ jobs:
197187
}
198188
}
199189
200-
main();
190+
main();

.github/workflows/stats-pr.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Open Pull Request with updated stats report
2+
on:
3+
workflow_run:
4+
workflows: ["Test Learning Path"]
5+
types: [completed]
6+
permissions:
7+
actions: read
8+
contents: write
9+
pull-requests: write
10+
jobs:
11+
stats-pr:
12+
runs-on: ubuntu-24.04-arm
13+
steps:
14+
- name: Checkout main branch
15+
uses: actions/checkout@v4
16+
with:
17+
ref: main
18+
- name: Download stats report as artifact
19+
uses: actions/download-artifact@v4
20+
with:
21+
# Run ID of the workflow that uploaded the artifact
22+
run-id: ${{ github.event.workflow_run.id }}
23+
github-token: ${{ github.token }}
24+
- name: Check if artifact exists
25+
run: |
26+
if [ ! -d stats_current_test_info ]; then
27+
echo "No stats artifact found"
28+
echo "ARTIFACT_EXIST=false" >> "$GITHUB_ENV"
29+
else
30+
echo "Stats artifact found"
31+
echo "ARTIFACT_EXIST=true" >> "$GITHUB_ENV"
32+
fi
33+
- name: Move stats file
34+
# Unpack the artifact and move the stats file to the correct location
35+
if: env.ARTIFACT_EXIST == 'true'
36+
run: |
37+
mv stats_current_test_info/stats_current_test_info.yml data/stats_current_test_info.yml
38+
rm -rf stats_current_test_info
39+
- name: Set workflow link as environment variable
40+
if: env.ARTIFACT_EXIST == 'true'
41+
run: echo "WORKFLOW_URL=${{ github.event.workflow_run.workflow_url }}" >> $GITHUB_ENV
42+
- name: Echo Workflow URL
43+
if: env.ARTIFACT_EXIST == 'true'
44+
run: echo $WORKFLOW_URL
45+
- name: Create Pull Request
46+
uses: peter-evans/create-pull-request@v6
47+
if: env.ARTIFACT_EXIST == 'true' && success()
48+
with:
49+
commit-message: Update stats_current_test_info.yml
50+
title: Update stats_current_test_info.yml
51+
body: |
52+
Update test result file with recent run
53+
Triggered by workflow run ${ WORKFLOW_URL }
54+
Auto-generated by create-pull-request: https://github.com/peter-evans/create-pull-request
55+
branch: update-stats-current-test-info
56+
base: main

.github/workflows/test-lp.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
tmpfile=$(mktemp)
3333
34-
git diff --name-only --diff-filter=d origin/${{ github.base_ref }}...HEAD |
34+
git diff --name-only origin/${{ github.base_ref }}...HEAD |
3535
grep '^content/' |
3636
while read -r path; do
3737
name=$(basename "$path")
@@ -91,3 +91,10 @@ jobs:
9191
- name: Check if maintenance is turned off
9292
if: env.MAINTENANCE == 'off' && success()
9393
run: echo "Maintenance is turned off for one or more files"
94+
# Only upload artifact if maintenance is on
95+
- name: Upload stats artifact
96+
uses: actions/upload-artifact@v4
97+
if: success() && env.MAINTENANCE == 'on'
98+
with:
99+
name: stats_current_test_info
100+
path: data/stats_current_test_info.yml

.github/workflows/weekly_stats_update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Result: updated file data/stats_weekly_data.yml
1+
# Result: updated files content/stats/stats_weekly_data.yml content/stats/stats_current_test_info.yml
22
# Will appear in learn.arm.com/stats
33

44
name: Stats file weekly update
@@ -57,7 +57,7 @@ jobs:
5757
# Commit updated files in a new PR
5858
- name: Commit updated stats files to repository
5959
run: |
60-
git add data/stats_weekly_data.yml
60+
git add data/stats_weekly_data.yml data/stats_current_test_info.yml
6161
# Push and commit only if changes to commit; if not, say so and end.
6262
git commit -m 'automatic update of stats files' && git push origin main || echo "No changes to commit"
6363

0 commit comments

Comments
 (0)