Skip to content

Commit

Permalink
feat: separated the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyxdd committed Oct 21, 2023
1 parent d362bd8 commit 8889e5c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and release

on:
workflow_dispatch:

concurrency:
group: build-and-release
cancel-in-progress: true

jobs:
build-and-release:
runs-on: windows-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Node.js and npm
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- name: Install dependencies
run: npm install
- name: Build and release the app
env:
GH_TOKEN: ${{ secrets.github_token }}
MARKETEYE_API_KEY: ${{ secrets.MARKETEYE_API_KEY }}
MARKETEYE_API_URL: ${{ secrets.MARKETEYE_API_URL }}
run: npm run package:publish
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
push:
branches:
- main

concurrency:
group: test
cancel-in-progress: true

jobs:
test:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Node.js and npm
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- name: Install dependencies
run: npm install
- name: Run tests
run: |
npm run package
npm run lint
npm exec tsc
npm test

0 comments on commit 8889e5c

Please sign in to comment.