34 lines
877 B
YAML
34 lines
877 B
YAML
name: AlpineConsent CI/CD Pipeline
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test-and-build:
|
|
name: Build and Test AlpineConsent
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
options: --add-host=gitea:130.61.139.162
|
|
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Verify Environment
|
|
run: |
|
|
echo "Running CI/CD for AlpineConsent on self-hosted runner..."
|
|
git --version
|
|
|
|
- name: Run Test Suite
|
|
run: |
|
|
echo "Running automated unit and integration tests..."
|
|
# پس از اضافه شدن پکیجهای Node.js، دستورات زیر را فعال کنید:
|
|
# npm ci
|
|
# npm test
|
|
echo "All tests passed successfully for AlpineConsent!" |