Skip to content

Commit

Permalink
Merge pull request #19473 from highcharts/dash/test-workflow
Browse files Browse the repository at this point in the history
dashboards test gh action
  • Loading branch information
goransle committed Aug 2, 2023
2 parents 83ffec5 + 43ad905 commit b62d455
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/dashboards-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Dashboards Test
on:
# Triggers the workflow on push or pull request events but only for the default branch
push:
branches: [ $default-branch ]
branches: [ 'master' ]
pull_request:
branches: [ $default-branch ]
branches: [ 'master' ]
paths:
- 'test/cypress/visual/**'
- 'samples/cypress/dashboards/**'
Expand All @@ -27,13 +27,33 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [lts]
steps:
- name: Checkout repository
uses: actions/checkout@v3

# Note that this adds a post-job step that saves the cache
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
ref: master
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
# Lists modules if no cache
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list

- name: Install Dependencies
run: npm i

- name: Run Dashboards Tests
run: npx gulp dashboards/test

0 comments on commit b62d455

Please sign in to comment.