Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Jaffee committed Jan 24, 2024
1 parent b17b7a7 commit 6131eb5
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# This workflow will do a clean install of node dependencies, build the source code,
# and run tests across different versions of node.
# 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, workflow_call]
inputs:

on:
push:
pull_request:

jobs:
tests:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ${{ inputs.working_directory }}

strategy:
matrix:
node-version: ${{ fromJSON(inputs.node_matrix) }}

inputs:
build_script:
required: false
type: string
Expand All @@ -20,23 +37,18 @@ inputs:
required: false
type: string
default: '["14.x"]'

secrets:
NPM_TOKEN:
required: false
MAPBOX_API_KEY:
required: false
jobs:
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: Checkout Repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node-version }}

0 comments on commit 6131eb5

Please sign in to comment.