Skip to content

Commit

Permalink
Change CI from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiří Novák committed Jul 30, 2024
1 parent a8b9356 commit 978453a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'GitHub Actions'
'on':
- push

env:
APP_IMAGE: php-jsonparser

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: 'Check out the repo'
uses: actions/checkout@v2
-
name: 'Print Docker version'
run: 'docker -v'
-
name: 'Build image'
run: 'docker build -t $APP_IMAGE .'
-
name: 'Run tests'
run: 'docker run $APP_IMAGE composer ci'
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
},
"config": {
"sort-packages": true,
"optimize-autoloader": true
"optimize-autoloader": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

0 comments on commit 978453a

Please sign in to comment.