Skip to content

Commit

Permalink
run tests on push to any branc
Browse files Browse the repository at this point in the history
  • Loading branch information
mlwilkerson committed Aug 9, 2024
1 parent dbb8091 commit d32cbd0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ name: Jest

on:
push:
branches: [ master ]
branches:
- "**"
pull_request:
branches: [ master ]
branches: [master]

jobs:
jest:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: '18'
check-latest: true

- name: Cache node_module
id: node-modules-cache
uses: actions/cache@v2
with:
path: admin/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('admin/package-lock.json') }}

- name: Install node dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: cd admin && npm install

- name: Run Jest
run: cd admin && npm run test
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: "18"
check-latest: true

- name: Cache node_module
id: node-modules-cache
uses: actions/cache@v2
with:
path: admin/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('admin/package-lock.json') }}

- name: Install node dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: cd admin && npm install

- name: Run Jest
run: cd admin && npm run test
3 changes: 2 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: PHP Tests

on:
push:
branches: [master]
branches:
- "**"
pull_request:
branches: [master]

Expand Down

0 comments on commit d32cbd0

Please sign in to comment.