Skip to content

Commit b6577a3

Browse files
authored
ci: migrate to GitHub Actions (#433)
1 parent c7280b6 commit b6577a3

File tree

8 files changed

+67
-180
lines changed

8 files changed

+67
-180
lines changed

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
FORCE_COLOR: 3
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os:
14+
- ubuntu-18.04
15+
- windows-2019
16+
- macos-10.15
17+
xdebug:
18+
- '2.9.8'
19+
php:
20+
- '7.4'
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: '6.17.1'
27+
- name: Install npm
28+
run: npm install -g npm@^6.3.0
29+
- name: Install npm dependencies
30+
run: npm ci
31+
- name: Prettier
32+
run: npm run prettier
33+
- name: Lint
34+
run: npm run tslint
35+
- name: Build extension
36+
run: npm run build
37+
- name: Setup PHP
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: ${{ matrix.php }}
41+
extensions: xdebug-${{ matrix.xdebug }}
42+
ini-values: >-
43+
xdebug.remote_enable = 1,
44+
xdebug.remote_autostart = 1,
45+
xdebug.remote_log = /tmp/xdebug.log
46+
- name: Run tests
47+
run: npm run cover
48+
- name: Generate coverage report
49+
run: ./node_modules/.bin/nyc report --reporter=json
50+
- name: Upload coverage to Codecov
51+
run: bash <(curl -s https://codecov.io/bash)
52+
shell: bash
53+
- name: Release
54+
if: github.event_name == 'push' && github.ref == 'refs/heads/release'
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
58+
run: npm run semantic-release

β€Ž.travis.ymlβ€Ž

Lines changed: 0 additions & 82 deletions
This file was deleted.

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# PHP Debug Adapter for Visual Studio Code
22

3-
[![vs marketplace](https://img.shields.io/vscode-marketplace/v/felixfbecker.php-debug.svg?label=vs%20marketplace)](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug) [![downloads](https://img.shields.io/vscode-marketplace/d/felixfbecker.php-debug.svg)](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug) [![rating](https://img.shields.io/vscode-marketplace/r/felixfbecker.php-debug.svg)](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug) [![windows build](https://img.shields.io/appveyor/ci/felixfbecker/vscode-php-debug/master.svg?label=windows+build)](https://ci.appveyor.com/project/felixfbecker/vscode-php-debug)
4-
[![macos/linux build](https://img.shields.io/travis/felixfbecker/vscode-php-debug/master.svg?label=macos/linux+build)](https://travis-ci.org/felixfbecker/vscode-php-debug) [![codecov](https://codecov.io/gh/felixfbecker/vscode-php-debug/branch/master/graph/badge.svg)](https://codecov.io/gh/felixfbecker/vscode-php-debug) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![chat: on gitter](https://badges.gitter.im/felixfbecker/vscode-php-debug.svg)](https://gitter.im/felixfbecker/vscode-php-debug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
3+
[![vs marketplace](https://img.shields.io/vscode-marketplace/v/felixfbecker.php-debug.svg?label=vs%20marketplace)](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug) [![downloads](https://img.shields.io/vscode-marketplace/d/felixfbecker.php-debug.svg)](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug) [![rating](https://img.shields.io/vscode-marketplace/r/felixfbecker.php-debug.svg)](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug) [![build status](https://img.shields.io/github/workflow/status/felixfbecker/vscode-php-debug/build/master?logo=github)](https://github.com/felixfbecker/vscode-php-debug/actions?query=branch%3Amaster) [![codecov](https://codecov.io/gh/felixfbecker/vscode-php-debug/branch/master/graph/badge.svg)](https://codecov.io/gh/felixfbecker/vscode-php-debug) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![chat: on gitter](https://badges.gitter.im/felixfbecker/vscode-php-debug.svg)](https://gitter.im/felixfbecker/vscode-php-debug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
54

65
![Demo GIF](images/demo.gif)
76

β€Žappveyor-install.ps1β€Ž

Lines changed: 0 additions & 52 deletions
This file was deleted.

β€Žappveyor.ymlβ€Ž

Lines changed: 0 additions & 36 deletions
This file was deleted.

β€Žpackage-lock.jsonβ€Ž

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"engines": {
1818
"vscode": "^1.6.0",
19-
"node": ">=6.0.0"
19+
"node": "^6.0.0"
2020
},
2121
"icon": "images/logo.png",
2222
"galleryBanner": {

β€Žtravis-php.iniβ€Ž

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
Β (0)