Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonyredondo/scope-dotnet-test
https://github.com/tonyredondo/scope-dotnet-test
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonyredondo/scope-dotnet-test
- Owner: tonyredondo
- License: apache-2.0
- Created: 2019-12-11T14:41:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T12:16:57.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T17:32:50.446Z (over 1 year ago)
- Language: JavaScript
- Size: 4.33 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scope: Getting Started
An starter ASP.NET Core + React project instrumented with [Scope](https://scope.undefinedlabs.com) through [GitHub Actions](https://github.com/features/actions).
This starter project is based on:
- [.NET Core 3.1](https://dotnet.microsoft.com/download/dotnet-core/3.1)## Install Scope on .NET Core projects with GitHub Actions
The `scope-for-dotnet-action` action has been configured in the GitHub Workflow `scope.yml` file:
```yaml
name: Build and run Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Build with dotnet
run: dotnet build
- name: Scope for .NET
uses: undefinedlabs/scope-for-dotnet-action@v1
with:
dsn: ${{ secrets.SCOPE_DSN }}
```For further information about how to install Scope, go to [Scope .NET Agent Installation](https://docs.scope.dev/docs/dotnet-installation)
## Running Scope on GitHub Actions
1. Click on `Use this template` button and create the repository in your namespace.
2. Access to [app.scope.dev](https://app.scope.dev) and
3. Add/Modify your namespace to include your new repository.
4. Get the API Key for your new repository.
5. Go to your repository on [GitHub](https://github.com)
6. Go to `Settings` -> `Secrets`.
7. Add your API Key secret.
- Name: `SCOPE_DSN`
- Value: `https://<>@app.scope.dev`
8. Click on `Actions` button and access to the workflow.
9. Click on `Re-run checks`.Once GitHub Workflow has finished, you can check the test executions report on [app.scope.dev](https://app.scope.dev)