소스 검색

Merge pull request #12 from wang0618/workflow-fix

Workflow fix
WangWeimin 4 년 전
부모
커밋
279f0cbae3
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      .github/workflows/test.yml

+ 4 - 4
.github/workflows/test.yml

@@ -28,13 +28,13 @@ jobs:
         run: |
         run: |
           python -m pip install --upgrade pip
           python -m pip install --upgrade pip
           pip install -r requirements.txt
           pip install -r requirements.txt
+      - name: Install env
+        run: echo "PERCY_TOKEN=${{ secrets.PERCY_TOKEN }}" >> $GITHUB_ENV
       - name: Percy Test
       - name: Percy Test
-        uses: percy/exec-action@v0.2.0
+        uses: percy/exec-action@v0.3.1
         with:
         with:
           working-directory: ./test
           working-directory: ./test
           command: "./run_all.sh"
           command: "./run_all.sh"
-        env:
-          PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
       - name: Upload test output
       - name: Upload test output
         uses: actions/upload-artifact@v1
         uses: actions/upload-artifact@v1
         if: failure()
         if: failure()
@@ -43,4 +43,4 @@ jobs:
           path: test/output
           path: test/output
       - name: Upload Codecov Report
       - name: Upload Codecov Report
         working-directory: ./test
         working-directory: ./test
-        run: bash <(curl -s https://codecov.io/bash)
+        run: bash <(curl -s https://codecov.io/bash)