From 3b105980c1b1cc1d00ea4007bc1651bdc6de1d56 Mon Sep 17 00:00:00 2001 From: Felix Bartels <1257835+fbartels@users.noreply.github.com> Date: Mon, 30 Dec 2019 13:55:15 +0100 Subject: [PATCH] prepare for reviewdog checks (#308) * add some reviewdog checks * give the workflow a better name * debug goss check * fix goss test for dagent * disable reviewdog for now as it does not properly work --- .github/workflows/goss.yml | 7 ++++++- .github/workflows/reviewdog.yml | 29 +++++++++++++++++++++++++++++ core/goss/dagent/goss.yaml | 2 +- core/goss/dagent/goss_wait.yaml | 2 +- 4 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/reviewdog.yml diff --git a/.github/workflows/goss.yml b/.github/workflows/goss.yml index 349849a..328d80d 100644 --- a/.github/workflows/goss.yml +++ b/.github/workflows/goss.yml @@ -2,7 +2,8 @@ name: Weekly Goss check on: schedule: - - cron: "1 2 * * 1" + - cron: "5 8 * * 1" +#on: [pull_request] jobs: build: @@ -15,5 +16,9 @@ jobs: run: sudo apt-get update && sudo apt-get install -y expect - name: create .env run: ./tests/test.exp + - name: install goss + run: sudo curl -L https://github.com/aelsabbahy/goss/releases/download/v0.3.9/goss-linux-amd64 -o /usr/local/bin/goss && sudo chmod +rx /usr/local/bin/goss + - name: install dcgoss + run: sudo curl -L https://raw.githubusercontent.com/aelsabbahy/goss/master/extras/dcgoss/dcgoss -o /usr/local/bin/dcgoss && sudo chmod +rx /usr/local/bin/dcgoss - name: Run goss tests run: make test-goss diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml new file mode 100644 index 0000000..ee7a13e --- /dev/null +++ b/.github/workflows/reviewdog.yml @@ -0,0 +1,29 @@ +name: Linting checks via Reviewdog +#n: [pull_request] +jobs: + reviewdog: + runs-on: ubuntu-latest + steps: + - name: Check out code. + uses: actions/checkout@v1 + - name: misspell + uses: reviewdog/action-misspell@v1 + with: + github_token: ${{ secrets.github_token }} + locale: "US" + - name: eclint + uses: fbartels/action-eclint@master + with: + github_token: ${{ secrets.github_token }} + - name: yamllint + uses: fbartels/action-yamllint@master + with: + github_token: ${{ secrets.github_token }} + - name: shellcheck + uses: fbartels/action-shellcheck@master + with: + github_token: ${{ secrets.github_token }} + - name: hadolint + uses: mgrachev/action-hadolint@v1.0.1 + with: + github_token: ${{ secrets.github_token }} diff --git a/core/goss/dagent/goss.yaml b/core/goss/dagent/goss.yaml index 856d771..74a1a19 100644 --- a/core/goss/dagent/goss.yaml +++ b/core/goss/dagent/goss.yaml @@ -1,5 +1,5 @@ port: - tcp6:2003: + tcp:2003: listening: true process: kopano-dagent: diff --git a/core/goss/dagent/goss_wait.yaml b/core/goss/dagent/goss_wait.yaml index 856d771..74a1a19 100644 --- a/core/goss/dagent/goss_wait.yaml +++ b/core/goss/dagent/goss_wait.yaml @@ -1,5 +1,5 @@ port: - tcp6:2003: + tcp:2003: listening: true process: kopano-dagent: