From 6131eb55d75858387b259e381ac5f02dd4ba0567 Mon Sep 17 00:00:00 2001 From: Ethan Jaffee Date: Wed, 24 Jan 2024 18:33:41 -0500 Subject: [PATCH] fix workflow --- .github/workflows/run_tests.yml | 40 +++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index d84120a1..7b37a123 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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 @@ -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 }} \ No newline at end of file + node-version: ${{ matrix.node-version }}