-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from yaswanth-deriv/yaswanth/circleci_migration
[FEQ]Yaswanth/Migration from circle ci to github workflows
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |