29 lines
881 B
YAML
29 lines
881 B
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
# Cancel in-progress runs for pull requests when developers push new changes
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
jobs:
|
|
validate-contributors:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
ACTOR: ${{ github.actor }}
|
|
BASE_REF: ${{ github.base_ref }}
|
|
HEAD_REF: ${{ github.head_ref }}
|
|
GITHUB_API_URL: ${{ github.api_url }}
|
|
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23.2"
|
|
- name: Validate contributors
|
|
run: go build ./cmd/readmevalidation && ./readmevalidation
|
|
- name: Remove build file artifact
|
|
run: rm ./readmevalidation
|