Răsfoiți Sursa

test exclude-file.txt, add action concurrency

hathach 3 ani în urmă
părinte
comite
b37870c964

+ 1 - 1
.codespell/exclude-file.txt

@@ -1 +1 @@
-
+  return USB0.INTSTS1.BIT.ATTCH ? true : false;

+ 1 - 1
.codespellrc

@@ -5,4 +5,4 @@ ignore-words-list = synopsys, sie, tre, hsi, fro, dout, mot, te
 check-filenames =
 check-hidden =
 skip = .cproject,./.git,./hw/mcu,./lib,./examples/*/*/_build,./examples/*/*/ses,./examples/*/*/ozone,./hw/mcu,./test/vendor,./tests_obsolete
-exclude-file = .codespell/exclude-file.txt
+exclude-file = ./.codespell/exclude-file.txt

+ 4 - 0
.github/workflows/build_aarch64.yml

@@ -7,6 +7,10 @@ on:
     types:
       - created
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   # ---------------------------------------
   # Build AARCH64 family

+ 0 - 21
.github/workflows/build_arm.yml

@@ -12,27 +12,6 @@ concurrency:
   cancel-in-progress: true
 
 jobs:
-  # ---------------------------------------
-  # Unit testing with Ceedling
-  # ---------------------------------------
-  unit-test:
-    runs-on: ubuntu-latest
-    steps:
-    - name: Setup Ruby
-      uses: ruby/setup-ruby@v1
-      with:
-        ruby-version: '2.7'
-
-    - name: Checkout TinyUSB
-      uses: actions/checkout@v3
-
-    - name: Unit Tests
-      run: |
-        # Install Ceedling
-        gem install ceedling
-        cd test
-        ceedling test:all
-
   # ---------------------------------------
   # Build ARM family
   # ---------------------------------------

+ 4 - 0
.github/workflows/build_esp.yml

@@ -7,6 +7,10 @@ on:
     types:
       - created
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   build-esp:
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/build_msp430.yml

@@ -7,6 +7,10 @@ on:
     types:
       - created
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:  
   build-msp430:
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/build_renesas.yml

@@ -7,6 +7,10 @@ on:
     types:
       - created
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   build-rx:
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/build_riscv.yml

@@ -7,6 +7,10 @@ on:
     types:
       - created
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   build-riscv:
     runs-on: ubuntu-latest

+ 14 - 2
.github/workflows/pre-commit.yml

@@ -17,8 +17,20 @@ jobs:
       with:
         python-version: '3.x'
 
+    - name: Setup Ruby
+      uses: ruby/setup-ruby@v1
+      with:
+        ruby-version: '2.7'
+
     - name: Checkout TinyUSB
       uses: actions/checkout@v3
 
-    - name: Check Code Spelling
-      uses: codespell-project/actions-codespell@master
+    - name: Run codespell
+      uses: codespell-project/actions-codespell@master
+
+    - name: Run Unit Tests
+      run: |
+        # Install Ceedling
+        gem install ceedling
+        cd test
+        ceedling test:all