Skip to content

Ny beta

Ny beta #874

Workflow file for this run

name: Test aka staging
#Builds and publishes PRs to "stable" test
on:
pull_request:
types: [closed]
branches:
- 'test'
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Build and push Docker image api
uses: docker/build-push-action@v1
if: ${{ github.actor != 'dependabot[bot]' }}
with:
username: ${{ secrets.ORG_DOCKER_USER }}
password: ${{ secrets.ORG_DOCKER_PASS }}
dockerfile: Assessments.Frontend.Web/Dockerfile
repository: artsdatabanken/assessments-fe
tags: test
- name: Post to slack
if: ${{ github.actor != 'dependabot[bot]' }}
run: .github/workflows/slack.sh ${{ secrets.POST_SLACK }}