Skip to content

Commit

Permalink
Add actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
BugDiver authored and negiDharmendra committed Oct 9, 2019
1 parent f3ce53f commit 0e9d230
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 92 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: functional-tests

on: [push, pull_request]

jobs:
linux:
runs-on: ubuntu-latest
env:
TAGS: js
GAUGE_TELEMETRY_ENABLED: false
steps:
- uses: actions/checkout@v1

- name: Use Node.js
uses: actions/setup-node@v1

- name: Init submodule
run: |
git submodule init
- name: Update submodule
run: |
git submodule update
- name: install
run: |
npm install
- name: Install gauge
run: |
mkdir ${HOME}/bin
curl https://raw.githubusercontent.com/getgauge/gauge/master/build/download.sh > install.sh
sh install.sh --location=${HOME}/bin
echo ::add-path::${HOME}/bin
- name: Install gauge-js
run: |
npm run installPlugin
- name: Run FTs
run: |
git clone https://github.com/getgauge/gauge-tests
cd gauge-tests
gauge install
./gradlew clean jsFT
windows:
runs-on: windows-latest
env:
TAGS: js
GAUGE_TELEMETRY_ENABLED: false
steps:
- uses: actions/checkout@v1

- name: Use Node.js
uses: actions/setup-node@v1

- name: Init submodule
run: |
git submodule init
- name: Update submodule
run: |
git submodule update
- name: install
run: |
npm install
- name: Install gauge
run: |
choco install gauge
- name: Install gauge-js
run: |
set PATH="C:\\Program Files\\gauge\\bin";%PATH%
npm run installPlugin
- name: Run FTs
run: |
set PATH="C:\\Program Files\\gauge\\bin";%PATH%
git clone https://github.com/getgauge/gauge-tests
cd gauge-tests
gauge install
gradlew.bat clean jsFT
77 changes: 77 additions & 0 deletions .github/workflows/lsp-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: lsp-tests

on: [push, pull_request]

jobs:
linux:
runs-on: ubuntu-latest
env:
TAGS: js
GAUGE_TELEMETRY_ENABLED: false
steps:
- uses: actions/checkout@v1

- name: Use Node.js
uses: actions/setup-node@v1

- name: Init submodule
run: |
git submodule init
- name: Update submodule
run: |
git submodule update
- name: install
run: |
npm install
- name: Install gauge stable
run: |
mkdir ${HOME}/bin
curl https://raw.githubusercontent.com/getgauge/gauge/master/build/download.sh > install.sh
sh install.sh --location=${HOME}/bin
echo ::add-path::${HOME}/bin
- name: Install gauge-js
run: |
npm run installPlugin
- name: Run lsp tests
run: |
git clone https://github.com/getgauge/gauge-lsp-tests
cd gauge-lsp-tests
npm install
gauge install
gauge run --tags='!knownIssue & (actions_on_project_load | actions_on_file_edit)' --env=js-wd
windows:
runs-on: windows-latest
env:
TAGS: js
GAUGE_TELEMETRY_ENABLED: false
steps:
- uses: actions/checkout@v1

- name: Use Node.js
uses: actions/setup-node@v1

- name: Init submodule
run: |
git submodule init
- name: Update submodule
run: |
git submodule update
- name: install
run: |
npm install
- name: Install gauge
run: |
choco install gauge
- name: Install gauge-js
run: |
set PATH="C:\\Program Files\\gauge\\bin";%PATH%
npm run installPlugin
- name: Run lsp tests
run: |
set PATH="C:\\Program Files\\gauge\\bin";%PATH%
git clone https://github.com/getgauge/gauge-lsp-tests
cd gauge-lsp-tests
npm install
gauge install
gauge run --tags='!knownIssue & (actions_on_project_load | actions_on_file_edit)' --env=js-wd
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: tests

on: [push, pull_request]

jobs:
test:
name: Node ${{ matrix.node_version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node_version: [10, 12]

steps:
- uses: actions/checkout@v1

- name: Use Node.js
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}

- name: Init submodule
run: |
git submodule init
- name: Update submodule
run: |
git submodule update
- name: install
run: |
npm install
- name: unit-tests
run: |
npm test
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Gauge-JS

[![Build Status - Travis CI](https://travis-ci.org/getgauge/gauge-js.svg?branch=master)](https://travis-ci.org/getgauge/gauge-js)
[![Build status](https://ci.appveyor.com/api/projects/status/bpxrbrexfeeff6r6/branch/master?svg=true)](https://ci.appveyor.com/project/getgauge/gauge-js/branch/master)
[![Actions Status](https://github.com/bugdiver/gauge-ts/workflows/tests/badge.svg)](https://github.com/getgauge/gauge-js/actions)
[![Actions Status](https://github.com/bugdiver/gauge-ts/workflows/functional-tests/badge.svg)](https://github.com/getgauge/gauge-js/actions)
[![Actions Status](https://github.com/bugdiver/gauge-ts/workflows/lsp-tests/badge.svg)](https://github.com/getgauge/gauge-js/actions)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)

This project adds Javascript [language plugin](https://docs.gauge.org/plugins.html#language-reporting-plugins) for [gauge](http://getgauge.io).
Expand Down
61 changes: 0 additions & 61 deletions appveyor.yml

This file was deleted.

0 comments on commit 0e9d230

Please sign in to comment.