mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Use concurrency
instead of if
This commit is contained in:
parent
846602b45f
commit
df83261d74
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -2,11 +2,13 @@ name: build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Build, lint, and test on Node.js ${{ matrix.node }}
|
||||
# Prevent the action running twice when the event is both a push and pull request
|
||||
if: github.event_name != 'push' || github.event_name == 'push' && !github.event.pull_request
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
|
Loading…
Reference in New Issue
Block a user