forked from eclipse-score/tooling
-
Notifications
You must be signed in to change notification settings - Fork 0
125 lines (125 loc) · 4.02 KB
/
Copy pathtests.yml
File metadata and controls
125 lines (125 loc) · 4.02 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Run Python Basics Integration and Unit Tests
on:
pull_request:
types: [opened, reopened, synchronize]
concurrency:
group: tests-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
ANDROID_HOME: ""
ANDROID_SDK_ROOT: ""
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
root_workspace_tests:
runs-on: ubuntu-24.04
permissions:
contents: read
actions: write
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.0
- name: Free Disk Space (Ubuntu)
uses: eclipse-score/more-disk-space@v1
with:
level: 4
- uses: castler/setup-bazel@cache-optimized
with:
bazelisk-cache: true
disk-cache: root_workspace_tests
repository-cache: true
cache-optimized: true
cache-save: ${{ github.ref == 'refs/heads/main' }}
- name: Run coverage module tests
run: |
bazel test //coverage/tests:all
- name: Run Plantuml Tooling clippy
run: |
bazel build //plantuml/... --config=clippy
- name: Run Plantuml Tooling tests
run: |
bazel test //plantuml/...
- name: Run Validation Tooling clippy
run: |
bazel build //validation/... --config=clippy
- name: Run Validation Tooling tests
run: |
bazel test //validation/...
- name: Ensure correct dependency resolution
run: |
bazel mod deps --lockfile_mode=update
- name: Run Libclang Parser Tooling clippy
run: |
bazel build //cpp/libclang/... --config=clippy
- name: Run Libclang Parser Tooling tests
run: |
bazel test //cpp/libclang/...
integration_tests:
runs-on: ubuntu-24.04
permissions:
contents: read
actions: write
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.0
- name: Free Disk Space (Ubuntu)
uses: eclipse-score/more-disk-space@v1
with:
level: 4
- uses: castler/setup-bazel@cache-optimized
with:
bazelisk-cache: true
disk-cache: integration_tests
repository-cache: true
cache-optimized: true
cache-save: ${{ github.ref == 'refs/heads/main' }}
- name: Run python_basics integration tests
run: |
cd python_basics/integration_tests
bazel test //...
- name: Run starpls integration tests
run: |
cd starpls/integration_tests
bazel test //...
- name: Run cr_checker unit tests
run: |
cd cr_checker/tests
bazel test //...
rules_score_tests:
runs-on: ubuntu-24.04
permissions:
contents: read
actions: write
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.0
- name: Free Disk Space (Ubuntu)
uses: eclipse-score/more-disk-space@v1
with:
level: 4
- uses: castler/setup-bazel@cache-optimized
with:
bazelisk-cache: true
disk-cache: rules_score_tests
repository-cache: true
cache-optimized: true
cache-save: ${{ github.ref == 'refs/heads/main' }}
- name: Install Missing Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcairo2-dev
- name: Run rules_score tests
run: |
cd bazel/rules/rules_score/test
bazel test //...