docs: investigate and document custom fields (meta) support #350
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a basic workflow to help you get started with Actions | |
| name: Integration Tests | |
| # Controls when the action will run. | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| env: | |
| solution: 'WordPressPCL.sln' | |
| buildPlatform: Any CPU | |
| buildConfiguration: Release | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 10.x | |
| - name: Dotnet Restore | |
| run: dotnet restore ${{ env.solution }} --disable-parallel | |
| - name: Build Solution | |
| run: dotnet build ${{ env.solution }} -c Release --no-restore | |
| - name: Create dockerzied WordPress | |
| run: | | |
| cd dev | |
| docker compose up -d | |
| docker ps | |
| for attempt in {1..60}; do | |
| if docker exec wordpress test -f /var/www/html/.wp-tests-ready; then | |
| break | |
| fi | |
| if [ "$attempt" -eq 60 ]; then | |
| docker compose logs | |
| exit 1 | |
| fi | |
| sleep 2 | |
| done | |
| curl --fail http://localhost:8080/wp-json | |
| - name: 'Run Tests: Selfhosted WordPress with JWT-AUTH' | |
| run: dotnet test -l "console;verbosity=detailed" tests/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj -s tests/WordPressPCL.Tests.Selfhosted/jwtauth.runsettings |