chore(deps) Update peter-evans/create-pull-request action to v7 #1117
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
| name: Lighthouse | |
| on: [push] | |
| jobs: | |
| lhci: | |
| name: Lighthouse | |
| runs-on: windows-latest | |
| env: | |
| config: 'Release' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: setup dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: setup dotnet ef | |
| run: dotnet tool install --tool-path .\.dotnet-tools dotnet-ef --version 8.0.6 | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '16.x' | |
| - name: install node deps | |
| run: npm install | |
| - name: node build | |
| run: npm run build | |
| - name: create settings file | |
| run: | | |
| cd web | |
| echo '{"ConnectionStrings":' > appsettings.cust.json | |
| echo '{"AtlasDatabase":' >> appsettings.cust.json | |
| echo '"Server=(localdb)\\mssqllocaldb;Database=atlas_test;Trusted_Connection=True"' >> appsettings.cust.json | |
| echo "}}" >> appsettings.cust.json | |
| cat appsettings.cust.json | |
| - name: install localdb | |
| uses: potatoqualitee/[email protected] | |
| with: | |
| install: localdb | |
| - name: migrate | |
| run: .\.dotnet-tools\dotnet-ef database update --project web/web.csproj | |
| - name: run Lighthouse CI | |
| run: | | |
| npm install -g @lhci/[email protected] | |
| lhci autorun | |
| env: | |
| LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
| LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }} |