diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml new file mode 100644 index 00000000..9809a87f --- /dev/null +++ b/.github/actions/test/action.yml @@ -0,0 +1,11 @@ +name: test +description: 'Test CrossModel' + +runs: # windows-2019 # is needed because the Setup Python task does not work with ubuntu + using: 'composite' + steps: + - name: Yarn test + uses: Amadevus/pwsh-script@v2.0.3 + with: + script: | + yarn test diff --git a/.github/workflows/feature.yml b/.github/workflows/feature.yml index efca7754..810eacfc 100644 --- a/.github/workflows/feature.yml +++ b/.github/workflows/feature.yml @@ -1,16 +1,18 @@ name: feature on: - push: - branches: - - feature/* + push: + branches: + - feature/* jobs: build: runs-on: windows-2019 # is needed because the Setup Python task does not work with ubuntu steps: - # Checkout the code. - - name: check out # is needed to read the files on the root folder of the repo - uses: actions/checkout@v3 - # Use the build-addin action. - - uses: ./.github/actions/build + # Checkout the code. + - name: check out # is needed to read the files on the root folder of the repo + uses: actions/checkout@v3 + # Use the build action. + - uses: ./.github/actions/build + # Use the test action. + - uses: ./.github/actions/test