Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfb3500

Browse files
committed
npm run test inside multiline command
1 parent e18d904 commit dfb3500

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: nelonoel/branch-name@v1
12-
- name: Echo week folder
13-
run: |
14-
export WEEK_FOLDER=$(echo ${BRANCH_NAME} | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
15-
echo ${WEEK_FOLDER}
1612
- uses: actions/setup-node@v1
1713
with:
1814
node-version: '10.x'
1915
- run: npm install
20-
- run: npm run test-$WEEK_FOLDER
16+
- name: Echo week folder and run tests
17+
run: |
18+
export WEEK_FOLDER=$(echo ${BRANCH_NAME} | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
19+
echo ${WEEK_FOLDER}\
20+
npm run test-${WEEK_FOLDER}

0 commit comments

Comments
 (0)