Skip to content

Commit 39d6490

Browse files
committed
migrate to GitHub Actions
1 parent 566a177 commit 39d6490

File tree

6 files changed

+123
-61
lines changed

6 files changed

+123
-61
lines changed
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "coding standards"
2+
3+
on: ["pull_request", "push"]
4+
5+
jobs:
6+
coding-standards:
7+
name: "coding standards"
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ['macos-latest', 'ubuntu-latest']
14+
hhvm: ['4.83', '4.84']
15+
dependencies: ['lowest', 'highest', 'locked']
16+
experimental: [false]
17+
18+
include:
19+
- { os: 'ubuntu-latest', hhvm: 'nightly', dependencies: 'lowest' , experimental: true, composer-options: '--ignore-platform-req hhvm' }
20+
- { os: 'ubuntu-latest', hhvm: 'nightly', dependencies: 'highest', experimental: true, composer-options: '--ignore-platform-req hhvm' }
21+
22+
steps:
23+
- name: "checkout"
24+
uses: "actions/checkout@v2"
25+
26+
- name: "installing hhvm"
27+
uses: "azjezz/setup-hhvm@v1"
28+
with:
29+
version: ${{ matrix.hhvm }}
30+
31+
- name: "installing dependencies"
32+
uses: "ramsey/composer-install@v1"
33+
with:
34+
dependency-versions: ${{ matrix.dependencies }}
35+
composer-options: "${{ matrix.composer-options }}"
36+
37+
- name: "checking coding standards"
38+
continue-on-error: ${{ matrix.experimental }}
39+
run: "hhvm vendor/bin/hhast-lint"

.github/workflows/static-analysis.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "static analysis"
2+
3+
on: ["pull_request", "push"]
4+
5+
jobs:
6+
static-analysis:
7+
name: "static analysis"
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ['macos-latest', 'ubuntu-latest']
14+
hhvm: ['4.83', '4.84']
15+
dependencies: ['lowest', 'highest', 'locked']
16+
experimental: [false]
17+
18+
include:
19+
- { hhvm: 'nightly', os: 'ubuntu-latest', dependencies: 'lowest' , composer-options: '--ignore-platform-req hhvm', experimental: true }
20+
- { hhvm: 'nightly', os: 'ubuntu-latest', dependencies: 'highest', composer-options: '--ignore-platform-req hhvm', experimental: true }
21+
22+
steps:
23+
- name: "checkout"
24+
uses: "actions/checkout@v2"
25+
26+
- name: "installing hhvm"
27+
uses: "azjezz/setup-hhvm@v1"
28+
with:
29+
version: ${{ matrix.hhvm }}
30+
31+
- name: "installing dependencies"
32+
uses: "ramsey/composer-install@v1"
33+
with:
34+
dependency-versions: ${{ matrix.dependencies }}
35+
composer-options: "${{ matrix.composer-options }}"
36+
37+
- name: "running static analysis"
38+
continue-on-error: ${{ matrix.experimental }}
39+
run: "hh_client"

.github/workflows/unit-tests.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "unit tests"
2+
3+
on: ["pull_request", "push"]
4+
5+
jobs:
6+
unit-tests:
7+
name: "unit tests"
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ['macos-latest', 'ubuntu-latest']
14+
hhvm: ['4.83', '4.84']
15+
dependencies: ['lowest', 'highest', 'locked']
16+
experimental: [false]
17+
18+
include:
19+
- { os: 'ubuntu-latest', hhvm: 'nightly', dependencies: 'lowest' , experimental: true, composer-options: '--ignore-platform-req hhvm' }
20+
- { os: 'ubuntu-latest', hhvm: 'nightly', dependencies: 'highest', experimental: true, composer-options: '--ignore-platform-req hhvm' }
21+
22+
steps:
23+
- name: "checkout"
24+
uses: "actions/checkout@v2"
25+
26+
- name: "installing hhvm"
27+
uses: "azjezz/setup-hhvm@v1"
28+
with:
29+
version: ${{ matrix.hhvm }}
30+
31+
- name: "installing dependencies"
32+
uses: "ramsey/composer-install@v1"
33+
with:
34+
dependency-versions: ${{ matrix.dependencies }}
35+
composer-options: "${{ matrix.composer-options }}"
36+
37+
- name: "running unit tests"
38+
continue-on-error: ${{ matrix.experimental }}
39+
run: "hhvm vendor/bin/hacktest tests"

.travis.sh

-30
This file was deleted.

.travis.yml

-25
This file was deleted.

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<p align="center"><img src="https://avatars3.githubusercontent.com/u/45311177?s=200&v=4"></p>
22

3-
<p align="center">
4-
<a href="https://travis-ci.org/nuxed/json"><img src="https://travis-ci.org/nuxed/json.svg" alt="Build Status"></a>
5-
<a href="https://packagist.org/packages/nuxed/json"><img src="https://poser.pugx.org/nuxed/json/d/total.svg" alt="Total Downloads"></a>
6-
<a href="https://packagist.org/packages/nuxed/json"><img src="https://poser.pugx.org/nuxed/json/v/stable.svg" alt="Latest Stable Version"></a>
7-
<a href="https://packagist.org/packages/nuxed/json"><img src="https://poser.pugx.org/nuxed/json/license.svg" alt="License"></a>
8-
</p>
3+
![Coding standards status](https://github.com/nuxed/json/workflows/coding%20standards/badge.svg?branch=develop)
4+
![Static analysis status](https://github.com/nuxed/json/workflows/static%20analysis/badge.svg?branch=develop)
5+
![Unit tests status](https://github.com/nuxed/json/workflows/unit%20tests/badge.svg?branch=develop)
6+
[![Total Downloads](https://poser.pugx.org/nuxed/json/d/total.svg)](https://packagist.org/packages/nuxed/json)
7+
[![Latest Stable Version](https://poser.pugx.org/nuxed/json/v/stable.svg)](https://packagist.org/packages/nuxed/json)
8+
[![License](https://poser.pugx.org/nuxed/json/license.svg)](https://packagist.org/packages/nuxed/json)
99

1010
# Nuxed Json
1111

0 commit comments

Comments
 (0)