Skip to content

Commit

Permalink
Refactored test build part into seperate action and added in feature …
Browse files Browse the repository at this point in the history
…build only (for now).
  • Loading branch information
harmen-xb committed Oct 18, 2023
1 parent d44a1f0 commit 5ae77b2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
11 changes: 11 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
script: |
yarn test
18 changes: 10 additions & 8 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5ae77b2

Please sign in to comment.