diff --git a/.github/workflows/quality.yaml b/.github/workflows/coverage.yaml similarity index 74% rename from .github/workflows/quality.yaml rename to .github/workflows/coverage.yaml index 7719f97..fafe178 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/coverage.yaml @@ -1,17 +1,11 @@ name: Quality -on: "push" +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: + - master jobs: - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@master - - name: Lint Go Code - uses: docker://golangci/golangci-lint:latest - with: - args: golangci-lint run ./... - test: name: Test with Coverage runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..29a5b90 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,15 @@ +name: Quality +on: + pull_request: + types: [opened, synchronize, reopened] +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@master + - name: Lint Go Code + uses: docker://golangci/golangci-lint:latest + with: + args: golangci-lint run ./... diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml deleted file mode 100644 index 316b998..0000000 --- a/.github/workflows/pull_request.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Merge Conflict -on: "pull_request" -jobs: - test: - name: Test - runs-on: ubuntu-latest - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.13 - - name: Check out code - uses: actions/checkout@master - - name: Install dependency - run: | - go mod download - - name: Run Unit tests. - run: | - go test -race ./...