Skip to content

Commit

Permalink
Use Gauge setup action (#531)
Browse files Browse the repository at this point in the history
Signed-off-by: Zabil Cheriya Maliackal <zabilcm@gmail.com>
  • Loading branch information
zabil authored Dec 16, 2020
1 parent beb210b commit adf54e3
Showing 1 changed file with 6 additions and 49 deletions.
55 changes: 6 additions & 49 deletions .github/workflows/vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,78 +17,35 @@ jobs:
with:
node-version: '12'

- name: build
run: |
npm run build
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Clone gauge and build
run: |
git clone --branch kill_runner_on_signal https://github.com/getgauge/gauge
cd gauge
go run build/make.go --verbose
- name: Install Gauge (windows)
if: matrix.os == 'windows-latest'
run: |
cd gauge
go run build/make.go --install --verbose
echo "C:\\Program Files\\gauge\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install Gauge (mac and linux)
if: matrix.os != 'windows-latest'
run: |
cd gauge
go run build/make.go --install --prefix=/tmp/gauge --verbose
echo "/tmp/gauge/bin" >> $GITHUB_PATH
- name: Prep gauge-js
run: |
git clone https://github.com/getgauge/gauge-js.git
cd gauge-js
npm install
shell: bash

- name: Install gauge-js
run: |
cd gauge-js
npm run installPlugin
- name: Gauge version (linux and macos)
if: matrix.os != 'windows-latest'
- name: build
run: |
export PATH=/tmp/bin:$PATH
gauge -v
npm run build
- name: Gauge version (windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
${env:PATH} += ";C:\Program Files\gauge\bin"
gauge -v
- uses: getgauge/setup-gauge@master
with:
gauge-version: master
gauge-plugins: screenshot,html-report,js

- name: Run tests (linux)
if: matrix.os == 'ubuntu-latest'
run: |
export PATH=/tmp/bin:$PATH
xvfb-run --auto-servernum npm test
- name: Run tests (macos)
if: matrix.os == 'macos-latest'
run: |
export PATH=/tmp/bin:$PATH
npm test
- name: Run tests (windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
${env:PATH} += ";C:\Program Files\gauge\bin"
npm test
- name: Upload logs
Expand Down

0 comments on commit adf54e3

Please sign in to comment.