Skip to content

Commit

Permalink
update ci yml
Browse files Browse the repository at this point in the history
  • Loading branch information
agile.zhou committed Jan 25, 2024
1 parent 09a3548 commit 10892d7
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions .github/workflows/master-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,20 @@ on:
branches: [ master ]
paths-ignore:
- '**/*.md'
- '**/*.yml'
jobs:
build-reactapp:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/AgileConfig.Server.UI/react-ui-antd
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm run build
- uses: actions/upload-artifact@v2
with:
name: agileconfig-ui
path: src/AgileConfig.Server.UI/react-ui-antd/dist/
build-dotnet:
needs: build-reactapp
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.*
- name: Install dependencies
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- uses: actions/download-artifact@v2
Expand Down

0 comments on commit 10892d7

Please sign in to comment.