Skip to content

Commit

Permalink
fix typescript version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Jaffee committed Jan 24, 2024
1 parent 5ff0a91 commit d6abdce
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,42 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Run Tests

on: [push, pull_request]

on:
workflow_call:
inputs:
build_script:
required: false
type: string
default: npm run build
test_script:
required: false
type: string
default: npm test
working_directory:
required: false
type: string
default: .
node_matrix:
required: false
type: string
default: '["14.x", "16.x"]'
secrets:
NPM_TOKEN:
required: false
MAPBOX_API_KEY:
required: false
jobs:
call_run_tests:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
test_script: npx jest
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ inputs.working_directory }}
strategy:
matrix:
node-version: ${{ fromJSON(inputs.node_matrix) }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

0 comments on commit d6abdce

Please sign in to comment.