Build and Test #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
# dotnet components | |
dotnet: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./lib | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Restore Packages | |
run: dotnet restore | |
- name: Build Core | |
run: dotnet build Whalerator | |
- name: Build WebAPI | |
run: dotnet build Whalerator.WebAPI | |
- name: Run Tests | |
run: dotnet test Whalerator.Test | |
# node/angular components | |
angular: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./web | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Npm install | |
run: npm install | |
- name: Build SPA | |
run: npm run build | |
- name: Run Tests | |
run: npm run test-headless |