From 842894269a77fa8411221151ab3d1325e4307e15 Mon Sep 17 00:00:00 2001 From: Tweak Date: Wed, 3 Aug 2022 11:44:23 -0600 Subject: [PATCH] Add files via upload --- .github/workflows/validation.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/validation.yml diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml new file mode 100644 index 0000000..3e21f91 --- /dev/null +++ b/.github/workflows/validation.yml @@ -0,0 +1,38 @@ +name: Validation +on: [pull_request] + +jobs: + validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v23.1 + - name: Install modules + run: yarn + - name: Run tests + id: tests + run: yarn test + env: + FILES: ${{ steps.changed-files.outputs.all_changed_files }} + actions_path: ${{ github.workspace }} + email_api_key: ${{ secrets.EMAIL_KEY }} + - name: Post message + if: always() + uses: mshick/add-pr-comment@v1 + with: + message: | + **Validation Results** + - Information Validation + ${{steps.tests.outputs.infoMessage}} + ${{steps.tests.outputs.infoReason}} + - DNS Record Validation + ${{steps.tests.outputs.recordMessage}} + + repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token-user-login: 'is-a-good.dev (Validation) [bot]' # The user.login for temporary GitHub tokens + allow-repeats: false # This is the default +