feat: Add separate CI workflows for Go, Python, and shell tests; remove legacy test workflow
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/simple-ca/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
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
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'simple-ca.py'
|
||||||
|
- 'test_simple_ca.py'
|
||||||
|
|
||||||
|
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
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'simple-ca.sh'
|
||||||
|
- 'run-tests.sh'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-shell:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Run shell tests
|
||||||
|
run: bash run-tests.sh
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
# Simple CA
|
# Simple CA
|
||||||
|
|
||||||
[](https://gitea.koszewscy.waw.pl/slawek/simple-ca/actions?workflow=test.yaml)
|
[](https://gitea.koszewscy.waw.pl/slawek/simple-ca/actions?workflow=test-shell.yaml)
|
||||||
|
[](https://gitea.koszewscy.waw.pl/slawek/simple-ca/actions?workflow=test-python.yaml)
|
||||||
|
[](https://gitea.koszewscy.waw.pl/slawek/simple-ca/actions?workflow=test-go.yaml)
|
||||||
|
|
||||||
Tools for creating and managing a simple Certificate Authority for testing and development. Three implementations are provided — pick whichever fits your environment:
|
Tools for creating and managing a simple Certificate Authority for testing and development. Three implementations are provided — pick whichever fits your environment:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user