Skip to content

Remove unnecessary stack #2470

Remove unnecessary stack

Remove unnecessary stack #2470

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- "mark-version-*-as-released"
jobs:
ci:
runs-on: ubuntu-latest
name: Build and run tests
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build solution
run: dotnet build BDMS.sln -c Release /warnaserror
- name: Start db and api's
run: docker compose up --wait minio db api-legacy api
- name: Run dotnet tests
run: dotnet test BDMS.sln -c Release --no-build --verbosity normal --filter TestCategory!=LongRunning
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- working-directory: ./src/client
run: npm ci
- working-directory: ./src/client
run: npm run lint
cypress-tests:
runs-on: ubuntu-latest
name: Run cypress tests
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build solution
run: dotnet build BDMS.sln -c Release /warnaserror
- name: Start db and api's
run: docker compose up --wait minio db api-legacy api
- working-directory: ./src/client
run: npm ci
- 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}}
build: npm run build
start: npm start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
working-directory: ./src/client
env:
REACT_APP_VERSION: 0.0.99+dev
TZ: Europe/Zurich
# Pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}