-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1023 Bytes
/
Copy pathdotnet.yml
File metadata and controls
39 lines (35 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Run Unit Tests
run: |
dotnet restore
dotnet build
dotnet test test/NosCore.ReverseProxy.Tests -v m
- name: Login to DockerHub
if: github.ref == 'refs/heads/master'
uses: docker/login-action@v1.9.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: dotnet test --runtime linux-musl-x64 --filter TestCategory=SomethingAsDotnetBuildDoesntWorkAnymore
- name: Build, tag, and push image
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v2
with:
context: .
file: ./deploy/Dockerfile
push: true
tags: noscoreio/noscore.reverseproxy:latest