Skip to content

Commit

Permalink
Merge branch 'master' into release/T24.centaur
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn committed Aug 7, 2024
2 parents da8c1fc + abaf370 commit f9891e7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 27 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ jobs:
with:
fetch-depth: 1
submodules: recursive
- name: Set node version
run: |
. ~/.nvm/nvm.sh && nvm install $(cat .nvmrc) && nvm use
- name: Get npm cache
uses: actions/cache@v2
id: npm-cache
# ------------------------------------------------------------------------------
# Setup Node.
# ------------------------------------------------------------------------------
- name: Check for .nvmrc file
id: check-nvmrc
run: echo "::set-output name=exists::$(test -f ${{ github.workspace }}/.nvmrc && echo 'true' || echo 'false')"

- uses: actions/setup-node@v3
if: steps.check-nvmrc.outputs.exists == 'true'
with:
path: '~/.npm'
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install node modules
run: |
. ~/.nvm/nvm.sh && nvm use && npm ci
run: npm ci
- name: Run linting tasks
run: |
. ~/.nvm/nvm.sh && nvm use && npm run lint
run: npm run lint
27 changes: 14 additions & 13 deletions .github/workflows/tests-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ jobs:
with:
fetch-depth: 1
submodules: recursive
- name: Set node version
run: |
. ~/.nvm/nvm.sh && nvm install $(cat .nvmrc) && nvm use
- name: Get npm cache
uses: actions/cache@v2
id: npm-cache
# ------------------------------------------------------------------------------
# Setup Node.
# ------------------------------------------------------------------------------
- name: Check for .nvmrc file
id: check-nvmrc
run: echo "::set-output name=exists::$(test -f ${{ github.workspace }}/.nvmrc && echo 'true' || echo 'false')"

- uses: actions/setup-node@v3
if: steps.check-nvmrc.outputs.exists == 'true'
with:
path: '~/.npm'
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install node modules
run: |
. ~/.nvm/nvm.sh && nvm use && npm ci
run: npm ci
- name: Run jest task
run: |
. ~/.nvm/nvm.sh && nvm use && npm run jest
run: npm run jest


2 changes: 1 addition & 1 deletion src/Tribe/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Tribe__Main {
*
* @var string
*/
protected $parent_plugin_file ='';
protected $parent_plugin_file = '';

public static $tribe_url = 'http://tri.be/';
public static $tec_url = 'https://theeventscalendar.com/';
Expand Down

0 comments on commit f9891e7

Please sign in to comment.