Skip to content

Commit

Permalink
Merge pull request #32 from mgrachev/master
Browse files Browse the repository at this point in the history
Move linters to GH Actions
  • Loading branch information
neprja committed Jul 14, 2021
2 parents b69e97d + 00c6fb8 commit 6e7668a
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 74 deletions.
22 changes: 0 additions & 22 deletions .circleci/bin/install.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .circleci/bin/reviewdog_dotenv.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .circleci/bin/reviewdog_golangci-lint.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .circleci/bin/reviewdog_hadolint.sh

This file was deleted.

31 changes: 0 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,6 @@ aliases:
- "/go/pkg/mod"

jobs:
linters:
executor:
name: default
steps:
- checkout
- run:
name: Install tools
command: .circleci/bin/install.sh
- run:
name: PATH for working without a relative path
command: echo "export PATH=$PATH:/home/circleci/project/bin" >> $BASH_ENV
- run:
name: Dotenv > Reviewdog
command: .circleci/bin/reviewdog_dotenv.sh
- run:
name: Hadolint > Reviewdog
command: .circleci/bin/reviewdog_hadolint.sh
- run:
name: Golangci-lint > Reviewdog
command: .circleci/bin/reviewdog_golangci-lint.sh
- run:
name: Dotenv
command: dotenv-linter
- run:
name: Hadolint
command: git ls-files --exclude='Dockerfile*' --ignored | xargs hadolint
- run:
name: Golangci-lint
command: golangci-lint run

tests:
executor:
name: default
Expand All @@ -83,6 +53,5 @@ jobs:
workflows:
ci:
jobs:
- linters
- tests
- integration-tests
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI
on: pull_request

jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1

misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-misspell@v1
with:
locale: "US"
fail_on_error: true

yamllint:
name: runner / yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-yamllint@v1
with:
fail_on_error: true
reporter: github-pr-review
yamllint_flags: '-d "{extends: default, rules: {truthy: disable}}" .'

hadolint:
name: runner / hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-hadolint@v1
with:
fail_on_error: true
reporter: github-pr-review

dotenv-linter:
name: runner / dotenv-linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dotenv-linter/action-dotenv-linter@v2
with:
reporter: github-pr-review

0 comments on commit 6e7668a

Please sign in to comment.