Skip to content

Instantly share code, notes, and snippets.

View ArveSystad's full-sized avatar
🤓

Arve Systad ArveSystad

🤓
View GitHub Profile
Task("Run unit tests")
.Does(() =>
{
DotNetCoreTest("./YourProject.Tests/YourProject.Tests.csproj");
});
app:
# Should be the same as backend.baseUrl when using the `app-backend` plugin
baseUrl: https://${CUSTOM_DOMAIN}
backend:
baseUrl: https://${CUSTOM_DOMAIN}
listen:
port: 80
cors:
origin: https://${CUSTOM_DOMAIN}
name: Publish TechDocs Site
on:
push:
branches: [main]
jobs:
publish-techdocs-site:
runs-on: ubuntu-latest
name: Build docker image
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
@ArveSystad
ArveSystad / Dockerfile
Created January 3, 2022 18:54
Modified dockerfile for use in this blogpost:
# This dockerfile builds an image for the backend package.
# It should be executed with the root of the repo as docker context.
#
# Before building this image, be sure to have run the following commands in the repo root:
#
# yarn install
# yarn tsc
# yarn build
#
# Once the commands have been run, you can build the image using `yarn build-image`
@ArveSystad
ArveSystad / acr_rg.tf
Last active January 6, 2022 16:55
Terraform script for creating a resource group with a container registry in Azure + push secrets to github
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.89.0"
}
azuread = {
source = "hashicorp/azuread"
version = "2.12.0"
}
@ArveSystad
ArveSystad / backstage_terraform.tf
Last active January 6, 2022 16:54
The content in this repository is referenced in this blog post:
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.89.0"
}
azuread = {
source = "hashicorp/azuread"
version = "2.12.0"
}
Testing testing
@ArveSystad
ArveSystad / Paramlengtherror.cs
Created June 15, 2018 09:13
Too long parameters in TestFixtures on classes make the R# Test runner window behave weirdly...
using NUnit.Framework;
namespace Reproduce_resharper_error
{
[TestFixture("Some param")]
[TestFixture("Some longer param")]
[TestFixture("Some slightly longer param")]
[TestFixture("1234567890123456789012345678901234567890")] // Add one more char here, and it disappears from the test runner window
[TestFixture("Some really, really, really, really, really, really, really, really long param")]
[TestFixture("Some really, really, really, really, really, really, really, really, really, really, really, really long param")]
public class CustomFeedFieldMapping : IExternalSystemFieldMapping
{
public Guid Guid
{
get { return Guid.Parse("107FF759-53C3-48CD-9A96-0CE0C1B82235"); }
}
public string Code { get { return "Code"; } }
public IFeed FeedForMapping