2021-09-26 15:25:54 +01:00
|
|
|
name: ci
|
2021-09-24 23:35:26 +01:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
2021-10-18 21:48:02 +01:00
|
|
|
fail-fast: false
|
2021-09-24 23:35:26 +01:00
|
|
|
matrix:
|
2021-11-23 17:22:26 +00:00
|
|
|
dotnet-version: [ '6.0.x' ]
|
2021-09-24 23:35:26 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
|
|
|
|
uses: actions/setup-dotnet@v1.7.2
|
|
|
|
with:
|
|
|
|
dotnet-version: ${{ matrix.dotnet-version }}
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build --configuration Release --no-restore
|
|
|
|
- name: Test
|
|
|
|
run: dotnet test --no-restore --verbosity normal
|
2021-10-18 21:48:02 +01:00
|
|
|
|
2022-02-13 12:14:35 +00:00
|
|
|
build-Docker:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
dotnet-version: [ '6.0.x' ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build CLI Container
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
file: {context}/Dockerfile.CLI
|
|
|
|
- name: Build Web Container
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
file: {context}/Dockerfile.Web
|
|
|
|
|
2021-10-23 11:11:03 +01:00
|
|
|
build-Js:
|
2021-10-18 21:48:02 +01:00
|
|
|
|
2021-10-23 11:11:03 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
node: [16]
|
2021-10-18 21:48:02 +01:00
|
|
|
|
2021-10-23 11:11:03 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-18 21:48:02 +01:00
|
|
|
|
2021-10-23 11:11:03 +01:00
|
|
|
- name: Install Node ${{ matrix.node }}
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
2021-10-18 21:48:02 +01:00
|
|
|
|
2021-10-23 11:11:03 +01:00
|
|
|
- name: Install Node Packages
|
|
|
|
working-directory: ./Selector.Web
|
|
|
|
run: npm ci
|
2021-10-18 21:48:02 +01:00
|
|
|
|
2021-10-23 11:11:03 +01:00
|
|
|
- name: Compile Front-end
|
|
|
|
working-directory: ./Selector.Web
|
|
|
|
run: npm run build --if-present
|