Matheus pozett store manager #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| ESLint-evaluator: | |
| runs-on: self-hosted | |
| name: ESLint | |
| steps: | |
| - name: Fetch project repository | |
| uses: actions/checkout@v3 | |
| - name: Fetch Blocked Files Checkout action | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: betrybe/blocked-files-checkout-action | |
| ref: v2 | |
| token: ${{ secrets.GIT_HUB_PAT }} | |
| path: .github/actions/blocked-files-checkout | |
| - name: Fetch ESLint evaluator | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: betrybe/eslint-linter-action | |
| ref: v3.4 | |
| token: ${{ secrets.GIT_HUB_PAT }} | |
| path: .github/actions/eslint-evaluator | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "16" | |
| - name: Restore protected files | |
| uses: ./.github/actions/blocked-files-checkout | |
| with: | |
| restore_branch: "master" | |
| - name: Run ESLint evaluator | |
| uses: ./.github/actions/eslint-evaluator | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| pr_number: ${{ github.event.pull_request.number }} | |
| Evaluator: | |
| runs-on: self-hosted | |
| name: Evaluator | |
| needs: [ESLint-evaluator] | |
| steps: | |
| - name: Fetch project repository | |
| uses: actions/checkout@v3 | |
| - name: Fetch Blocked Files Checkout action | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: betrybe/blocked-files-checkout-action | |
| ref: v2 | |
| token: ${{ secrets.GIT_HUB_PAT }} | |
| path: .github/actions/blocked-files-checkout | |
| - name: Fetch Store evaluation | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: betrybe/store-evaluation-action | |
| ref: v8.0 | |
| token: ${{ secrets.GIT_HUB_PAT }} | |
| path: .github/actions/store-evaluation | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "16" | |
| - name: Restore protected files | |
| uses: ./.github/actions/blocked-files-checkout | |
| with: | |
| restore_branch: "master" | |
| - name: Run Docker Cypress evaluation | |
| id: evaluator | |
| uses: ./.github/actions/docker-cypress-evaluator | |
| with: | |
| tests_folder: __tests__ | |
| # compose_folder: . | |
| run_compose: true | |
| # wait_for_url: 'http://localhost:3001' | |
| pr_author_username: ${{ github.event.pull_request.user.login }} | |
| - name: Run Store evaluation | |
| uses: ./.github/actions/store-evaluation | |
| with: | |
| evaluation-data: ${{ steps.evaluator.outputs.result }} | |
| environment: production | |
| token: ${{ secrets.GITHUB_TOKEN }} |