935167ca8c
- Removed the JSON configuration structure and related functions. - Introduced plain text file for AIA base URL management. - Updated CA and certificate creation functions to directly read/write AIA URL. - Simplified CA bundle rebuilding logic by directly reading subdirectories. - Enhanced test coverage for CA and certificate creation, including PFX generation. - Adjusted test cases to reflect changes in directory structure and file handling.
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
on:
|
|
push:
|
|
paths:
|
|
- 'simple-ca.sh'
|
|
- 'simple-ca.py'
|
|
- 'run-tests.sh'
|
|
- 'test_simple_ca.py'
|
|
- 'src/simple-ca/**'
|
|
- '.gitea/workflows/test.yaml'
|
|
|
|
jobs:
|
|
test-python:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install pytest
|
|
run: pip install pytest
|
|
|
|
- name: Run python tests
|
|
run: python3 -m pytest test_simple_ca.py -v
|
|
|
|
test-shell:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Run shell tests
|
|
run: bash run-tests.sh
|
|
|
|
test-go:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: stable
|
|
|
|
- name: Run Go tests
|
|
run: go test -v ./...
|
|
working-directory: src/simple-ca
|