Skip to content

Commit

Permalink
Create a new workflow for mistica-skin-generator-tests and modify the…
Browse files Browse the repository at this point in the history
… generation flow to generate tokens
  • Loading branch information
amegias committed Jul 23, 2024
1 parent 2e33ccd commit 2c1e100
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/generate-mistica-tokens.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Mistica skin generator tests
name: Generate Mistica Tokens

on:
workflow_dispatch:
push:
paths:
- 'scripts/mistica-skin-generator/**'

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build & execute tests
name: Build & generate tokens
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -25,6 +22,18 @@ jobs:
run: npm install
working-directory: scripts/mistica-skin-generator

- name: Run tests
run: npm run test
- name: Generate tokens
run: npm run generate
working-directory: scripts/mistica-skin-generator

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.NOVUM_PRIVATE_REPOS }}
add-paths: 'Sources/MisticaCommon/*'
commit-message: 'feat(skin): update design tokens'
title: 'feat(skin): update design tokens from mistica-design'
branch: 'import-design-tokens'
team-reviewers: 'ios'
delete-branch: true
draft: true
30 changes: 30 additions & 0 deletions .github/workflows/mistica-skin-generator-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Mistica skin generator tests

on:
workflow_dispatch:
push:
paths:
- 'scripts/mistica-skin-generator/**'

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build & execute tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4

- name: Install dependencies
run: npm install
working-directory: scripts/mistica-skin-generator

- name: Run tests
run: npm run test
working-directory: scripts/mistica-skin-generator

0 comments on commit 2c1e100

Please sign in to comment.