Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnkwlp authored Sep 1, 2024
1 parent ea6dabc commit 54d1c09
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: ${{github.workspace}}/src/Passingwind.ElsaDesigner/node_modules
key: ${{ runner.os }}-yarn-cache
restore-keys: |
${{ runner.os }}-node
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: DotNet restore dependencies
run: dotnet restore Passingwind.WorkflowApp.sln

- name: DotNet build
run: dotnet build --no-restore -c Release Passingwind.WorkflowApp.sln

# - name: DotNet test
# run: dotnet test

- uses: actions/setup-node@v4
with:
node-version: "16"

- name: node yarn
run: |
cd ./src/Passingwind.ElsaDesigner
yarn
- name: npm build
run: |
cd ./src/Passingwind.ElsaDesigner
npm run build

0 comments on commit 54d1c09

Please sign in to comment.