Update README.md #54
This file contains 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
name: E2E | |
on: | |
push: | |
branches: ['master'] | |
jobs: | |
Publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- run: npm i | |
- run: npm i -g @azure/static-web-apps-cli | |
- run: | | |
dotnet build tools/Ignis.Components.HeroIcons.Generator -c Release | |
dotnet tools/Ignis.Components.HeroIcons.Generator/bin/Release/net8.0/Ignis.Components.HeroIcons.Generator.dll | |
- run: dotnet build tests/e2e/Ignis.Tests.E2E.Website -c Release | |
- run: dotnet publish tests/e2e/Ignis.Tests.E2E.Website/Ignis.Tests.E2E.Website.csproj -c Release | |
- run: swa deploy -d ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_E2E }} --env production | |
working-directory: tests/e2e/Ignis.Tests.E2E.Website | |
- uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- run: pwsh tools/wait-for-stapp.ps1 ignis-e2e-website-stapp | |
Tests: | |
runs-on: ubuntu-latest | |
needs: Publish | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- run: dotnet build tests/e2e/Ignis.Tests.E2E/Ignis.Tests.E2E.csproj -c Release | |
- run: pwsh tests/e2e/Ignis.Tests.E2E/bin/Release/net8.0/playwright.ps1 install --with-deps | |
- run: dotnet test tests/e2e/Ignis.Tests.E2E/Ignis.Tests.E2E.csproj -c Release |