Skip to content

Commit 2de7de3

Browse files
authored
Switch from Travis CI to GitHub Actions (#11)
1 parent fb9473d commit 2de7de3

File tree

3 files changed

+98
-38
lines changed

3 files changed

+98
-38
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Prepare Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Version to release
8+
required: true
9+
force:
10+
description: Force a release even when there are release-blockers (optional)
11+
required: false
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
name: Release version
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
token: ${{ secrets.GH_RELEASE_PAT }}
21+
fetch-depth: 0
22+
23+
- name: Prepare release
24+
uses: getsentry/action-prepare-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
27+
with:
28+
version: ${{ github.event.inputs.version }}
29+
force: ${{ github.event.inputs.force }}

.github/workflows/tests.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
tests:
11+
name: Tests
12+
runs-on: ubuntu-latest
13+
env:
14+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php:
19+
- '7.2'
20+
- '7.3'
21+
- '7.4'
22+
- '8.0'
23+
- '8.1'
24+
symfony-version:
25+
- 3.4.*
26+
- 4.4.*
27+
- 5.*
28+
- 6.*
29+
dependencies:
30+
- highest
31+
exclude:
32+
- php: '7.2'
33+
symfony-version: 6.*
34+
dependencies: highest
35+
- php: '7.3'
36+
symfony-version: 6.*
37+
dependencies: highest
38+
- php: '7.4'
39+
symfony-version: 6.*
40+
dependencies: highest
41+
include:
42+
- php: '7.2'
43+
symfony-version: 3.4.*
44+
dependencies: lowest
45+
- php: '7.2'
46+
symfony-version: 4.4.*
47+
dependencies: lowest
48+
- php: '7.2'
49+
symfony-version: 5.*
50+
dependencies: lowest
51+
- php: '8.0'
52+
symfony-version: 6.*
53+
dependencies: lowest
54+
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v2
58+
59+
- name: Setup PHP
60+
uses: shivammathur/setup-php@v2
61+
with:
62+
php-version: ${{ matrix.php }}
63+
tools: flex
64+
65+
- name: Install dependencies
66+
uses: ramsey/composer-install@v1
67+
with:
68+
dependency-versions: ${{ matrix.dependencies }}
69+
composer-options: --prefer-dist

.travis.yml

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

0 commit comments

Comments
 (0)