Skip to content

Commit

Permalink
Move JS tests in its own GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException committed Aug 27, 2023
1 parent 0cd7348 commit a7b79a0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,5 @@ jobs:
- name: "Run PHP tests with coverage"
run: "./vendor/bin/phpunit --coverage-clover clover.xml"

- name: "Run JS tests"
run: "yarn jest"

- name: "Deliver code coverage"
run: "bash <(curl -s https://codecov.io/bash)"
25 changes: 25 additions & 0 deletions .github/workflows/js-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "JS Tests"

on: ["push", "pull_request"]

jobs:
js-tests:

runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v2"

- name: "Installation of node"
uses: "actions/setup-node@v3"
with:
node-version: '20.5.1'

- name: "yarn install"
run: "yarn install"

- name: "Run webpack"
run: "yarn dev"

- name: "Run JS tests"
run: "yarn jest"

0 comments on commit a7b79a0

Please sign in to comment.