chore(deps) Update peter-evans/create-pull-request action to v7 #873
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: 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 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 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 }} |