Skip to content

Commit

Permalink
bump appium dependency and add spinner (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 authored Oct 8, 2022
1 parent 21840bb commit 342033d
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 140 deletions.
59 changes: 38 additions & 21 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,49 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

name: release
on:
release:
types: [created]
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
types:
- labeled

jobs:
build:
release:
if: github.event.action != 'labeled'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Post bumpr status comment
uses: haya14busa/action-bumpr@v1

# Get tag name.
- id: tag
uses: haya14busa/action-cond@v1
with:
node-version: 12
- run: npm ci
cond: "${{ startsWith(github.ref, 'refs/tags/') }}"
if_true: ${{ github.ref }}
if_false: ${{ steps.bumpr.outputs.next_version }}

- name: Release
uses: justincy/[email protected]
id: release
- uses: actions/setup-node@v1
if: steps.release.outputs.released == 'true'
with:
registry-url: 'https://registry.npmjs.org'
- name: Publish
if: steps.release.outputs.released == 'true'
run: echo "//registry.npmjs.org/:_authToken=${{secrets.npm_token}}" > .npmrc && npm ci && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}


publish-npm:
needs: build
release-check:
if: github.event.action == 'labeled'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Post bumpr status comment
uses: haya14busa/action-bumpr@v1
9 changes: 6 additions & 3 deletions __tests__/plugin.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { remote } from 'webdriverio';
import { command } from 'webdriver';
import { pluginE2EHarness } from 'appium/test';
import { pluginE2EHarness } from '@appium/plugin-test-support';
import path from 'path';
var chai = require('chai'),
// eslint-disable-next-line no-unused-vars
should = chai.should();
chaiAsPromised = require('chai-as-promised');

chai.use(chaiAsPromised);
// eslint-disable-next-line no-undef
should = chai.should();
let expect = chai.expect;
import axios from 'axios';

Expand Down
Loading

0 comments on commit 342033d

Please sign in to comment.