Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/test-spec.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# This is the Jenkins ci variant of the .github/labler.yaml
# New comment to trigger yamllint

"__EXCLUDE__":
- "**/VERSION"
- "**/*.rst"

"CI-run-twister":
- any:
"CI-run-twister"
- any:

Check warning on line 9 in .github/test-spec.yml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (None)

.github/test-spec.yml:9 syntax error: could not find expected ':' (syntax)
- "!.github/**/*"
- "!.vscode/**/*"
- "!doc/**/*"
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

Check warning on line 1 in .github/workflows/lint-yaml.yml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (document-start)

.github/workflows/lint-yaml.yml:1 found forbidden document start "---"
name: Lint yaml files

on:
pull_request:

jobs:
lint_yml:
runs-on: ubuntu-latest
steps:
- name: Execute yamllint
uses: nrfconnect/action-yamllint@main
74 changes: 74 additions & 0 deletions .github/workflows/twister-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Copyright (c) 2025, Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

name: Twister Unity Tests

on:
pull_request:
types: [push, opened, reopened, synchronize]

workflow_dispatch:

jobs:
twister_job:
name: Run Twister patch series (PR)
runs-on:
- runs-on=${{ github.run_id }}
- runner=4cpu-linux-x64
# Keep aligned with target NCS version
container: ghcr.io/nrfconnect/sdk-nrf-toolchain:v2.9.1
defaults:
run:
# Bash shell is needed to set toolchain related environment variables in docker container
# It is a workaround for GitHub Actions limitation https://github.com/actions/runner/issues/1964
shell: bash

steps:
- name: Checkout the code

Check warning on line 27 in .github/workflows/twister-clang.yml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (indentation)

.github/workflows/twister-clang.yml:27 wrong indentation: expected 6 but found 4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
path: nrf-lite
fetch-depth: 0

- name: restore-cache-sdk
id: cache-sdk
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: |
nrf
zephyr
modules
key: ${{ runner.os }}-nrf-sdk

- name: Prepare west project
run: |
west init -l nrf-lite
west update -o=--depth=1 -n

- name: Install requirements
run: |
apt-get update
apt-get install -y build-essential ninja-build gcc-multilib g++-multilib ruby

- name: Run Twister
working-directory: nrf-lite
run: |
west twister -vc -p native_sim -T tests --enable-asan --enable-lsan --enable-ubsan

- name: upload-logs
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: ${{ !cancelled() }}
with:
name: twister-logs
path: nrf-lite/twister-out/**/*.log
retention-days: 5

- name: save-cache-sdk
if: always() && steps.cache-sdk.outputs.cache-hit != 'true'
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: |
nrf
zephyr
modules
key: ${{ steps.cache-sdk.outputs.cache-primary-key }}
Loading