forked from defenseunicorns/uds-core
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 996 Bytes
/
scripts-test.yaml
File metadata and controls
37 lines (29 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2025 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
name: Scripts Tests
# Permissions for the GITHUB_TOKEN used by the workflow.
permissions:
contents: read # Allows reading the content of the repository.
on:
pull_request:
paths:
- "scripts/renovate/**"
- "scripts/root-ca-retriever/**"
jobs:
test:
name: ${{ matrix.script-dir }} Tests
runs-on: ubuntu-latest
strategy:
matrix:
script-dir: [renovate, root-ca-retriever]
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
- name: Install dependencies
working-directory: scripts/${{ matrix.script-dir }}
run: npm ci
- name: Run tests
working-directory: scripts/${{ matrix.script-dir }}
run: npm run test