Skip to content

feat: update 'collaborator' command to support read-only permission t… #925

feat: update 'collaborator' command to support read-only permission t…

feat: update 'collaborator' command to support read-only permission t… #925

Workflow file for this run

name: Lint -> Test
on:
push:
branches: [main]
pull_request:
# Since no branch is specified, this will run on all PRs
# Repository dispatches are triggered throughout the GitHub API. This is used to run the custom integration tests using a specified API host
# in the custom integration test job below
repository_dispatch:
types: [run_integration_tests]
workflow_dispatch:
jobs:
lint-test:
name: Lints and Tests
runs-on: macos-latest
permissions:
contents: read
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: "1.25.4"
- name: Lint
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
with:
version: latest
args: --timeout=5m
- name: Unit Tests
run: make test
- name: Install Tests
run: make test-install
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
fail_ci_if_error: false
# Monitor code coverage and TODO/FIXME-type comments
health-score:
name: Health Score
needs: lint-test
runs-on: macos-latest
permissions:
checks: write
contents: read
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: "1.25.4"
- name: Report health score
uses: slackapi/slack-health-score@d58a419f15cdaff97e9aa7f09f95772830ab66f7 # v0.1.1
with:
extension: "go"
codecov_token: ${{ secrets.ELAINES_CODECOV_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
include: "cmd internal"