Fixup not nullable Comment #328
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: Cypress Tests | |
on: [push] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
containers: [1] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set environment variables | |
run: | | |
echo PEM_CERT_PATH=$(pwd)/certs/geopilot.pem >> $GITHUB_ENV | |
echo UBUNTU_TRUSTED_CERT_PATH=/usr/local/share/ca-certificates/geopilot.crt >> $GITHUB_ENV | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0" | |
- name: Create dev-certs | |
run: | | |
mkdir ./certs | |
dotnet dev-certs https --export-path ${{ env.PEM_CERT_PATH }} --no-password --format PEM | |
chmod -R 664 ./certs/* | |
- name: Trust dev-certs | |
run: | | |
sudo apt-get install -y ca-certificates | |
sudo cp ${{ env.PEM_CERT_PATH }} ${{ env.UBUNTU_TRUSTED_CERT_PATH }} | |
sudo update-ca-certificates | |
- name: Start db and api's | |
run: docker compose up --wait | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
command: npx cypress run --record --parallel --key ${{ secrets.CYPRESS_RECORD_KEY }} --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}} | |
wait-on: "https://localhost:5173" | |
wait-on-timeout: 120 | |
working-directory: ./src/Geopilot.Frontend | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_EXTRA_CA_CERTS: ${{ env.UBUNTU_TRUSTED_CERT_PATH }} |