Skip to content

Commit

Permalink
Merge pull request #218 from yaswanth-deriv/yaswanth/circleci_migration
Browse files Browse the repository at this point in the history
[FEQ]Yaswanth/Migration from circle ci to github workflows
  • Loading branch information
ali-hosseini-deriv authored Jan 22, 2024
2 parents 410c7b4 + 6884d5a commit 7033684
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docs-build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docs Build Deploy Workflow
on:
push:
branches:
- master
jobs:
build_test_and_publish:
name: Build and Test the Application
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js using 14.x
uses: actions/setup-node@v4
with:
node-version: 14.x
- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "gh-pages deploy bot"
- name: Install Packages
run: npm install
- name: Deploy to gh-pages
run: npm run gh-pages
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deriv API Test WorkFlow
on:
push:
branches:
- master
jobs:
build_test_and_publish:
name: Build and Test the Application
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js using 14.x
uses: actions/setup-node@v4
with:
node-version: 14.x
- name: Install Packages
run: npm install
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
./node_modules
key: dependency-cache-{{ checksum "package.json" }}
- name: Run tests and collect coverage
run: npm test -- --collectCoverage=true && npm run coverage
- name: Check syntax
run: npm run syntax
- name: Save coverage artifacts
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage

0 comments on commit 7033684

Please sign in to comment.