Update: enhance CI workflow to include Python and Go tests
This commit is contained in:
@@ -2,14 +2,46 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- 'simple-ca.sh'
|
||||
- 'simple-ca.py'
|
||||
- 'run-tests.sh'
|
||||
- 'src/simple-ca/**'
|
||||
- '.gitea/workflows/test.yaml'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
test-bash:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Run tests
|
||||
run: ./run-tests.sh
|
||||
- name: Run bash tests
|
||||
run: ./run-tests.sh bash
|
||||
|
||||
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: Run python tests
|
||||
run: ./run-tests.sh python
|
||||
|
||||
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: '1.25'
|
||||
cache-dependency-path: src/simple-ca/go.sum
|
||||
|
||||
- name: Run go tests
|
||||
run: ./run-tests.sh go
|
||||
|
||||
Reference in New Issue
Block a user