-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (46 loc) · 1.55 KB
/
common-tests.yml
File metadata and controls
55 lines (46 loc) · 1.55 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
name: Common Package Tests
on:
pull_request:
paths:
- 'internal/common/**/*.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/common-tests.yml'
push:
branches: [main]
paths:
- 'internal/common/**/*.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/common-tests.yml'
jobs:
common-tests:
name: Run Common Package Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
# Use the version in go.mod if present; otherwise pin a version
go-version-file: go.mod
cache: true
- name: Get dependencies
run: go mod download
- name: Run common model grammar tests
run: go test github.com/eclipse-basyx/basyx-go-components/internal/common/model/grammar -count=1 -v -cover
- name: Run common security model tests
run: |
cd internal/common/security/unit_tests/model
go test -count=1 -v -cover
- name: Run common tokenizer tests
run: go test -count=1 -v -cover -run 'TestTokenizeFieldPaths' ./internal/common/builder
- name: Run common security abac engine tests
run: |
cd internal/common/security/unit_tests/abac_engine
go test -count=1 -v -cover
- name: Run common security filter tests
run: |
cd internal/common/security/unit_tests/filter_abac_engine
go test -count=1 -v -cover