Add issue template for bugs (#836) #2187
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: CI | |
on: | |
push: | |
branches-ignore: | |
- "mark-version-*-as-released" | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
name: Build and run tests | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build solution | |
run: dotnet build BDMS.sln -c Release /warnaserror | |
- name: Start db and api's | |
run: docker-compose up -d 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 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- 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@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build solution | |
run: dotnet build BDMS.sln -c Release /warnaserror | |
- name: Start db and api's | |
run: docker-compose up -d 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 }} |