From d8eb8ece4b34464234745492708e18dc01fc2771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AA=E6=8D=B1=E5=AE=85?= Date: Mon, 25 Nov 2019 17:54:36 +0800 Subject: [PATCH] ci: fix cannot create directory with mkdir (#19920) * ci: fix cannot create directory with mkdir * chore: retrigger --- .github/workflows/test.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ec8689f54..cfd3f36ec6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,6 @@ on: [push] jobs: setup: runs-on: ubuntu-latest - steps: - name: checkout uses: actions/checkout@master @@ -21,7 +20,9 @@ jobs: - name: hack for singe file run: | - mkdir package-temp-dir + if [ ! -d "package-temp-dir" ]; then + mkdir package-temp-dir + fi cp package-lock.json package-temp-dir - name: cache node_modules @@ -37,7 +38,6 @@ jobs: compile: runs-on: ubuntu-latest - steps: - name: checkout uses: actions/checkout@master @@ -71,12 +71,10 @@ jobs: - name: check run: node ./tests/dekko/lib.test.js - needs: setup dist: runs-on: ubuntu-latest - steps: - name: checkout uses: actions/checkout@master @@ -103,12 +101,10 @@ jobs: run: npm test env: LIB_DIR: dist - needs: setup lint: runs-on: ubuntu-latest - steps: - name: checkout uses: actions/checkout@master @@ -127,12 +123,10 @@ jobs: - name: lint run: npm run lint - needs: setup node: runs-on: ubuntu-latest - steps: - name: checkout uses: actions/checkout@master @@ -151,12 +145,10 @@ jobs: - name: test run: npm test - needs: setup lib: runs-on: ubuntu-latest - steps: - name: checkout uses: actions/checkout@master @@ -183,12 +175,10 @@ jobs: run: npm test env: LIB_DIR: lib - needs: compile es: runs-on: ubuntu-latest - steps: - name: checkout uses: actions/checkout@master @@ -215,5 +205,4 @@ jobs: run: npm test env: LIB_DIR: es - needs: compile