Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into #22-countries
Browse files Browse the repository at this point in the history
# Conflicts:
#	composer.lock
  • Loading branch information
krzysztofrewak committed Oct 12, 2020
2 parents 26d79d6 + 7307e3a commit afa6b7f
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 339 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 1
update_configs:
- package_manager: "php:composer"
update_schedule: "live"
update_schedule: "weekly"
directory: "/"
target_branch: "develop"
commit_message:
prefix: "#58 - (php) "

- package_manager: "javascript"
update_schedule: "live"
update_schedule: "weekly"
directory: "/"
target_branch: "develop"
commit_message:
Expand Down
25 changes: 11 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Behaviour, code and style test

on:
push:
branches: [ develop ]
branches: [ "develop" ]
pull_request:
branches: [ develop ]
branches: [ "develop" ]

jobs:
build:
Expand All @@ -16,42 +16,39 @@ jobs:

- name: Validate composer.json and composer.lock
run: composer validate

- name: Prepare environments for tests
run: |
echo "CURRENT_UID=$(id -u):$(id -g)" >> $GITHUB_ENV
./.github/scripts/decrypt.sh
mkdir -p .npm
env:
decryptKey: ${{ secrets.decryptKey }}
decryptKey: ${{ secrets.decryptKey }}

- name: Build PHP & Database containers
run: docker-compose -f docker-compose.yml up -d --build

- name: Authenticating Nova in Continuous Integration
run: docker-compose run php composer config http-basic.nova.laravel.com "${{ secrets.novaUsername }}" "${{ secrets.novaPassword }}"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install PHP dependencies
run: docker-compose run php composer install --prefer-dist --no-progress --no-suggest

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
path: .npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-node-
- name: Install JS dependencies
run: docker-compose run node npm install
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ yarn-error.log

/.composer
/.psalm
/.npm
Loading

0 comments on commit afa6b7f

Please sign in to comment.