diff options
author | crupest <crupest@outlook.com> | 2020-10-31 00:42:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 00:42:06 +0800 |
commit | a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f (patch) | |
tree | ee006874b0c93e9bfc76f141a092a8b9585a1f95 /.github/workflows | |
parent | 0c4caaebe2480e77918d5d7df234f0edaeab74ba (diff) | |
parent | 7ce0846d9ec968da3ea4f7ebcc6db26db8e49089 (diff) | |
download | timeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.tar.gz timeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.tar.bz2 timeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.zip |
Merge pull request #161 from crupest/upgrade
Upgrade packages and split front end and back end.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/back-ci.yaml | 16 | ||||
-rw-r--r-- | .github/workflows/front-ci.yaml | 12 |
2 files changed, 16 insertions, 12 deletions
diff --git a/.github/workflows/back-ci.yaml b/.github/workflows/back-ci.yaml index a7f4f2d0..5b4609f7 100644 --- a/.github/workflows/back-ci.yaml +++ b/.github/workflows/back-ci.yaml @@ -3,17 +3,21 @@ name: Back End CI on:
push:
branches: [master]
- paths-ignore:
- - "Timeline/ClientApp/**"
+ paths:
+ - "BackEnd/**"
pull_request:
branches: [master]
- paths-ignore:
- - "Timeline/ClientApp/**"
+ paths:
+ - "BackEnd/**"
jobs:
build:
name: Build
runs-on: ubuntu-latest
+ defaults:
+ run:
+ shell: bash
+ working-directory: BackEnd
env:
ASPNETCORE_ENVIRONMENT: "Development"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
@@ -25,7 +29,7 @@ jobs: uses: actions/cache@v2
with:
path: ${{ env.NUGET_PACKAGES }}
- key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.lock.json') }}
+ key: nuget-${{ runner.os }}-${{ hashFiles('BackEnd/**/packages.lock.json') }}
restore-keys: |
nuget-${{ runner.os }}-
@@ -42,4 +46,4 @@ jobs: if: ${{ success() || failure() }}
with:
name: test-result
- path: Timeline.Tests/TestResults/
+ path: BackEnd/Timeline.Tests/TestResults/
diff --git a/.github/workflows/front-ci.yaml b/.github/workflows/front-ci.yaml index b549479a..93581dad 100644 --- a/.github/workflows/front-ci.yaml +++ b/.github/workflows/front-ci.yaml @@ -4,11 +4,11 @@ on: push:
branches: [master]
paths:
- - "Timeline/ClientApp/**"
+ - "FrontEnd/**"
pull_request:
branches: [master]
paths:
- - "Timeline/ClientApp/**"
+ - "FrontEnd/**"
jobs:
build:
@@ -17,15 +17,15 @@ jobs: defaults:
run:
shell: bash
- working-directory: Timeline/ClientApp
+ working-directory: FrontEnd
steps:
- uses: actions/checkout@v2
- - name: Use Node.js 14
+ - name: Use Node.js 15
uses: actions/setup-node@v1
with:
- node-version: "14"
+ node-version: "15"
- name: Restore Packages
run: yarn
@@ -40,4 +40,4 @@ jobs: uses: actions/upload-artifact@v2
with:
name: dist
- path: Timeline/ClientApp/dist/
+ path: FrontEnd/dist/
|