version: 2.1
resource_types:
  # Set status of build in github for pull requests
  - name: pull-request
    type: docker-image
    source:
      repository: teliaoss/github-pr-resource

resources:
  - name: code
    type: pull-request
    source:
      repository: luispabon/kong-certbot-agent
      access_token: {{github-access-token}}
      disable_ci_skip: false

jobs:
  - name: Run tests
    public: true
    plan:
      - get: code
        trigger: true
        version: every

      - put: code
        params:
          path: code
          status: pending

      - task: run tests
        file: code/concourse/task-run-tests.yaml
        on_failure:
          put: code
          params:
            path: code
            status: failure

      - put: code
        params:
          path: code
          status: success

      - task: code coverage reports
        params:
          CODECOV_TOKEN: {{codecov-token}}
        file: code/concourse/task-codecov.yaml

version: 2.1
resource_types:
  # Set status of build in github for pull requests
  - name: pull-request
    type: docker-image
    source:
      repository: teliaoss/github-pr-resource

resources:
  - name: code
    type: pull-request
    source:
      repository: luispabon/kong-certbot-agent
      access_token: {{github-access-token}}
      disable_ci_skip: false

jobs:
  - name: analyze-pr
    public: true
    plan:
      - get: code
        trigger: true
        version: every

      - put: notify-pr-being-built
        resource: code
        params:
          path: code
          status: pending

      - task: run tests
        file: code/concourse/task-run-tests.yaml
        on_failure:
          put: code
          params:
            path: code
            status: failure

      - put: notify-pr-success
        resource: code
        params:
          path: code
          status: success

      - task: code coverage reports
        params:
          CODECOV_TOKEN: {{codecov-token}}
        file: code/concourse/task-codecov.yaml

Use more descriptive names for build steps on PRs
Use more descriptive names for build steps on PRs
