Skip to content

Fixes externalSubjectId Issue in specificAssetIds #719

Fixes externalSubjectId Issue in specificAssetIds

Fixes externalSubjectId Issue in specificAssetIds #719

Workflow file for this run

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