Skip to content

Commit

Permalink
Merge pull request #952 from asbjornu/feature/github-actions
Browse files Browse the repository at this point in the history
Replace Travis with GitHub Actions
  • Loading branch information
michaelklishin authored Oct 17, 2020
2 parents 0c77e6a + d37e703 commit 25e70d9
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 44 deletions.
8 changes: 6 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.required_modifiers = static
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
dotnet_naming_style.static_prefix_style.required_prefix = s_
dotnet_naming_style.static_prefix_style.capitalization = camel_case
dotnet_naming_style.static_prefix_style.capitalization = camel_case

# internal and private fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
Expand All @@ -75,7 +75,7 @@ dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case

# Code style defaults
csharp_using_directive_placement = outside_namespace:suggestion
Expand Down Expand Up @@ -183,3 +183,7 @@ indent_size = 2
end_of_line = lf
[*.{cmd, bat}]
end_of_line = crlf

# YAML files
[*.yml]
indent_size = 2
34 changes: 34 additions & 0 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build (Linux)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

services:
rabbitmq:
image: rabbitmq:3.8.9-management
ports:
- 5672:5672
- 15672:15672

steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- name: Build
run: dotnet build --configuration Release

- name: Test
run: dotnet test --configuration Release --framework 'netcoreapp3.1' --no-build
env:
RABBITMQ_RABBITMQCTL_PATH: DOCKER:${{job.services.rabbitmq.id}}
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

0 comments on commit 25e70d9

Please sign in to comment.