-
Notifications
You must be signed in to change notification settings - Fork 62
43 lines (37 loc) · 1.01 KB
/
repo_tests.reusable.yaml
File metadata and controls
43 lines (37 loc) · 1.01 KB
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
38
39
40
41
42
43
# Runs tests to verify:
# 1. All linters are specified in the README.md
# 2. All linters have test coverage.
# 3. Plugin has a healthy composite config
name: Repo Tests
on:
workflow_call:
inputs:
cli-version:
required: false
type: string
cli-path:
required: false
type: string
permissions:
contents: read
statuses: read
jobs:
plugins_test:
name: Plugin Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Run repo tests
run: npm test tests/repo_tests --ci
env:
JEST_SUITE_NAME: Repo Tests
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }}
PLUGINS_TEST_CLI_PATH: ${{ inputs.cli-path }}