persistence/.gitea/workflows/test.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2024-12-18 11:49:05 +05:00
name: Run Tests
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
2024-12-17 14:05:14 +05:00
jobs:
2024-12-18 11:49:05 +05:00
run_tests:
2024-12-17 14:05:14 +05:00
runs-on: ubuntu-latest
2024-12-18 11:49:05 +05:00
container: catthehacker/ubuntu:act-latest
2024-12-17 14:05:14 +05:00
steps:
2024-12-18 12:21:28 +05:00
# - name: Checkout Codebase
# uses: actions/checkout@v4
2024-12-18 12:06:35 +05:00
2024-12-18 12:21:28 +05:00
# - name: Setup dotnet
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 8.0.x
2024-12-18 11:49:05 +05:00
2024-12-18 12:21:28 +05:00
# - name: Check out repository code
# uses: actions/checkout@v4
2024-12-18 11:49:05 +05:00
- name: Configure and install postgres
run: |
apt update
2024-12-18 12:22:14 +05:00
apt install -y postgresql
2024-12-18 11:49:05 +05:00
service postgresql start
2024-12-18 12:31:08 +05:00
sudo -u postgres -s psql -U postgres -d postgres -c "alter user postgres with password 'postgres'; SELECT version();"
2024-12-18 11:49:05 +05:00
# - uses: pdm-project/setup-pdm@v3
# with:
# python-version: 3.10
# token: ${{ secrets.GH_TOKEN }}
# - name: Install dependencies
# run: cd ${{ gitea.workspace }} && pdm install
2024-12-18 12:06:35 +05:00
2024-12-18 12:21:28 +05:00
# - name: Run integration tests
# env:
# DB_HOST: localhost
# DB_USER: postgres
# DB_PASSWORD: postgres
2024-12-18 12:06:35 +05:00
2024-12-18 12:21:28 +05:00
# run: |
# dotnet test DD.Persistence.IntegrationTests