-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from biigle/es6
ES6
- Loading branch information
Showing
14 changed files
with
10,776 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2020": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:vue/essential" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"vue" | ||
], | ||
"rules": { | ||
"no-prototype-builtins": "off", | ||
"no-console": ["error", {"allow": ["warn", "error"]}], | ||
"vue/require-v-for-key": "off" | ||
}, | ||
"globals": { | ||
"biigle": "readonly", | ||
"Vue": "readonly", | ||
"VueStrap": "readonly" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run ESLint | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
|
||
test-module: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/checkout@v1 | ||
with: | ||
repository: biigle/core | ||
ref: dev-modules | ||
fetch-depth: 1 | ||
path: core | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
working-directory: ../core | ||
|
||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
working-directory: ../core | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer | ||
restore-keys: | | ||
${{ runner.os }}-composer | ||
- name: Install Dependencies | ||
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist --ignore-platform-reqs | ||
working-directory: ../core | ||
|
||
- name: Remove BIIGLE modules | ||
run: rm -r vendor/biigle | ||
working-directory: ../core | ||
|
||
- name: Update BIIGLE modules from source | ||
run: composer update --no-ansi --no-interaction --no-scripts --no-suggest --prefer-source --ignore-platform-reqs biigle/* | ||
working-directory: ../core | ||
|
||
- name: Remove installed package | ||
run: rm -r vendor/${GITHUB_REPOSITORY} | ||
working-directory: ../core | ||
|
||
- name: Copy current repository | ||
run: cp -r ${GITHUB_WORKSPACE} vendor/biigle | ||
working-directory: ../core | ||
|
||
- name: Generate key | ||
run: php artisan key:generate | ||
working-directory: ../core | ||
|
||
- name: Docker login | ||
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Fetch base images | ||
run: | | ||
docker pull docker.pkg.github.com/biigle/core/app:latest | ||
docker pull docker.pkg.github.com/biigle/core/worker:latest | ||
- name: Start test database | ||
run: docker-compose up -d --no-build database_testing | ||
working-directory: ../core | ||
|
||
- name: Run tests | ||
run: docker-compose run --rm -u 1001 worker php -d memory_limit=1G vendor/bin/phpunit --random-order --filter 'Biigle\\Tests\\Modules\\'${GITHUB_REPOSITORY##*/} | ||
working-directory: ../core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.