Skip to content

Commit 85f3c38

Browse files
authored
Merge pull request #70 from leviy/master_git_actions
LPD-10211: Migrate from Travis-CI to GitHub Actions
2 parents 92d5f6b + 6fc9a70 commit 85f3c38

File tree

5 files changed

+93
-34
lines changed

5 files changed

+93
-34
lines changed

Diff for: .github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @leviy/developers

Diff for: .github/workflows/deploy.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy
2+
on:
3+
push:
4+
release:
5+
# Every published release will trigger a distribution app build which will
6+
# added to the release a asset.
7+
types: [published]
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup PHP with Composer v1
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: '7.2'
22+
tools: composer:v1
23+
24+
- name: Get Composer Cache Directory
25+
id: composer-cache
26+
run: |
27+
echo "::set-output name=dir::$(composer config cache-files-dir)"
28+
- uses: actions/cache@v2
29+
with:
30+
path: ${{ steps.composer-cache.outputs.dir }}
31+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-composer-
34+
35+
- name: Create build
36+
run: make dist
37+
- uses: actions/upload-release-asset@v1
38+
if: github.event_name == 'release'
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
upload_url: ${{ github.event.release.upload_url }}
43+
asset_path: build/release-tool.phar
44+
asset_name: release-tool.phar
45+
asset_content_type: application/zip

Diff for: .github/workflows/test.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
on: push
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: checkout
9+
uses: actions/checkout@v2
10+
11+
- name: Setup PHP with Composer v1
12+
uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: '7.2'
15+
tools: composer:v1
16+
17+
- name: Get Composer Cache Directory
18+
id: composer-cache
19+
run: |
20+
echo "::set-output name=dir::$(composer config cache-files-dir)"
21+
- uses: actions/cache@v2
22+
with:
23+
path: ${{ steps.composer-cache.outputs.dir }}
24+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-composer-
27+
28+
- name: Composer Install
29+
run: composer install --no-interaction --no-progress --no-ansi
30+
31+
- name: Test
32+
run: make static-analysis unit-tests acceptance-tests coding-standards
33+
34+
- name: Integration tests
35+
run: |
36+
git config --global user.name "github-actions"
37+
git config --global user.email "[email protected]"
38+
make integration-tests

Diff for: .travis.yml

-28
This file was deleted.

Diff for: composer.lock

+9-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)