Skip to content

Commit

Permalink
[WIP] setup GitHub Actions build and test steps
Browse files Browse the repository at this point in the history
WORK IN PROGRESS

We define GitHub Actions YAML which runs a simplified version of
the BuildScalarFor*.{bat,sh} and RunUnitTests.{bat,sh} scripts
under Scripts/.

One difference is that we use a Release build configuration
instead of using a Build configuration as our default.

We also do not define the ScalarVersion MSBuild property and
rely on what is set in Directory.Build.props.

h/t kyle-rader
  • Loading branch information
chrisd8088 committed Aug 13, 2020
1 parent 78d47da commit 04b18db
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Scalar

on:
push:
branches: [ main, linux-initial-trial ]
pull_request:
branches: [ main ]

env:
DOTNET_NOLOGO: 1

jobs:
validate_scalar:
name: "CI"

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, windows-2019, macos-10.15]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works.

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

- name: Install dependencies
run: dotnet restore

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

- name: Test
run: dotnet test --no-restore

0 comments on commit 04b18db

Please sign in to comment.