From b8ba0eab7cea585b2f6530235dca11e43b22058a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 17 Oct 2020 21:43:56 +0530 Subject: [PATCH] Adds test to publish record workflow --- .github/workflows/checks.yml | 2 -- .github/workflows/publish-records.yml | 20 ++++++++++++-------- package.json | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2e43a9291..f35be82a3 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,5 +1,3 @@ -# https://github.com/actions/labeler - name: Checks on: [pull_request_target] diff --git a/.github/workflows/publish-records.yml b/.github/workflows/publish-records.yml index e4b02e011..41f919882 100644 --- a/.github/workflows/publish-records.yml +++ b/.github/workflows/publish-records.yml @@ -7,20 +7,24 @@ on: jobs: publish: runs-on: ubuntu-latest - env: - CI: 1 - ENV: production - DOMAIN_USER: ${{ secrets.DOMAIN_USER }} - DOMAIN_API_KEY: ${{ secrets.DOMAIN_API_KEY }} - DOMAIN_API_HOST: ${{ secrets.DOMAIN_API_HOST }} - DOMAIN_API_PORT: ${{ secrets.DOMAIN_API_PORT }} - DOMAIN_DOMAIN: ${{ secrets.DOMAIN_DOMAIN }} steps: - uses: actions/checkout@v2 - uses: borales/actions-yarn@v2.0.0 with: cmd: install + - name: Running tests + uses: borales/actions-yarn@v2.0.0 + with: + cmd: test - name: Publishing records + env: + CI: 1 + ENV: production + DOMAIN_USER: ${{ secrets.DOMAIN_USER }} + DOMAIN_API_KEY: ${{ secrets.DOMAIN_API_KEY }} + DOMAIN_API_HOST: ${{ secrets.DOMAIN_API_HOST }} + DOMAIN_API_PORT: ${{ secrets.DOMAIN_API_PORT }} + DOMAIN_DOMAIN: ${{ secrets.DOMAIN_DOMAIN }} uses: borales/actions-yarn@v2.0.0 with: cmd: publish-records diff --git a/package.json b/package.json index fcdd4252f..fef02d225 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ }, "repository": { "type": "git", - "url": "https://github.com/is-a.dev/register-domain" + "url": "https://github.com/is-a-dev/register" }, "keywords": [ - "__" + "subdomain" ], "author": "Akshay Nair ", "license": "GPL-3.0",