From f385fa6d1d3d3bbb9332be42e018b2bc5f3f4ecd Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Wed, 27 Oct 2021 11:46:19 +0530 Subject: [PATCH] Update explorer.yml --- .github/workflows/explorer.yml | 72 +--------------------------------- 1 file changed, 2 insertions(+), 70 deletions(-) diff --git a/.github/workflows/explorer.yml b/.github/workflows/explorer.yml index 7eeb08957a..4c55dffffe 100644 --- a/.github/workflows/explorer.yml +++ b/.github/workflows/explorer.yml @@ -1,10 +1,6 @@ -name: Explorer +name: Explorer_build&test_on_PR on: - push: - branches: [master] - paths: - - 'explorer/**' - pull_request_target: + pull_request: branches: - master paths: @@ -16,7 +12,6 @@ jobs: defaults: run: working-directory: explorer - if: github.event_name == 'pull_request_target' steps: - uses: actions/checkout@v2 with: @@ -31,66 +26,3 @@ jobs: - run: npm run format - run: npm run build - run: npm run test - - uses: actions/checkout@v2 - - uses: amondnet/vercel-action@v20 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required - github-token: ${{ secrets.GITHUB_TOKEN }} #Optional - vercel-org-id: ${{ secrets.ORG_ID}} #Required - vercel-project-id: ${{ secrets.PROJECT_ID}} #Required - working-directory: ./explorer - scope: ${{ secrets.TEAM_ID }} #added solana(vercel) as "TEAM_ID" - Testing_before_merging: - runs-on: ubuntu-latest - if: github.event_name == 'push' - defaults: - run: - working-directory: explorer - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-node@v2 - with: - node-version: '14' - cache: 'npm' - cache-dependency-path: explorer/package-lock.json - - run: npm i -g npm@7 - - run: npm ci - - run: npm run format - - run: npm run build - - run: npm run test - - production_deployment: - needs: Testing_before_merging - runs-on: ubuntu-latest - defaults: - run: - working-directory: explorer - if: github.event_name == 'push' - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-node@v2 - with: - node-version: '14' - cache: 'npm' - cache-dependency-path: explorer/package-lock.json - - run: npm i -g npm@7 - - run: npm ci - - run: npm run format - - run: npm run build - - run: npm run test - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - uses: amondnet/vercel-action@v20 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required - github-token: ${{ secrets.GITHUB_TOKEN }} #Optional - vercel-args: '--prod' #for production - vercel-org-id: ${{ secrets.ORG_ID}} #Required - vercel-project-id: ${{ secrets.PROJECT_ID}} #Required - working-directory: ./explorer - scope: ${{ secrets.TEAM_ID }}