Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoke test for dev workflow #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/drupal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Drupal/DKAN

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
drupal-dkan-tests:
# [ ] try php:8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
#- name: Copy .env
# run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install
#run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Rebuild the website
run: .bin/phing update
- name: Test README workflow
run: |
git diff
.bin/phing import
git diff
.bin/phing export
git diff

#- name: Create Database
# run: |
# mkdir -p database
# touch database/database.sqlite
#- name: Execute tests (Unit and Feature tests) via PHPUnit
# env:
# DB_CONNECTION: sqlite
# DB_DATABASE: database/database.sqlite
# run: vendor/bin/phpunit
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"name": "opendata",
"description": "File for managing patches and modifications",
"type": "project",
"license": "GPL-2.0+",
"authors": [
Expand Down Expand Up @@ -77,7 +75,7 @@
"behat/mink-goutte-driver": "~1.2",
"jcalderonzumba/gastonjs": "^1.1@dev",
"jcalderonzumba/mink-phantomjs-driver": "~0.3.1",
"mikey179/vfsStream": "~1.2",
"mikey179/vfsstream": "~1.2",
"phpunit/phpunit": "~4.8",
"symfony/css-selector": "2.7.*"
},
Expand Down