Upgrade .NET version and dependencies #14
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: Integration testing | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ master ] | |
jobs: | |
integration-test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Service containers to run with `runner-job` | |
services: | |
# Label used to access the service container | |
casper-nctl: | |
# Docker Hub image | |
image: makesoftware/casper-nctl:latest | |
options: --name casper-nctl | |
env: | |
DEPLOY_DELAY: '5sec' | |
ports: | |
# Opens RPC, REST and events ports on the host and service container | |
- 11101:11101 | |
- 14101:14101 | |
- 18101:18101 | |
- 25101:25101 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal |