34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: New Pull Request
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
comment-on-pr:
|
|
# We only care about commenting on a PR if the PR is from a fork
|
|
if: github.event.pull_request.head.repo.full_name != github.repository
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Comment PR
|
|
uses: thollander/actions-comment-pull-request@1.0.1
|
|
with:
|
|
message: |
|
|
PR is now waiting for a maintainer to run the acceptance tests.
|
|
|
|
**Note for the maintainer:** To run the acceptance tests, please comment */run-acceptance-tests* on the PR
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
lint:
|
|
container: golangci/golangci-lint:latest
|
|
name: Lint ${{ matrix.directory }}
|
|
strategy:
|
|
matrix:
|
|
directory: [ sdk, pkg, tests ]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
- name: Lint ${{ matrix.directory }}
|
|
run: |
|
|
cd ${{ matrix.directory }} && golangci-lint run -c ../.golangci.yml
|