Skip to content

Fixing output colors and window resizing #400

Fixing output colors and window resizing

Fixing output colors and window resizing #400

Workflow file for this run

name: Test
on:
pull_request:
concurrency:
group: ${{ format('{0}-test-{1}', github.event.repository.name, github.head_ref || github.ref_name) }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: Go test
runs-on: ubuntu-latest
environment: prod
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: "go.mod"
- name: Run snapshot action
uses: actions/go-dependency-submission@f35d5c9af13ce9cc32f7930b171e315e878f6921 # v2.0.3
with:
go-mod-path: "go.mod"
- name: Go format and lint
run: |
go fmt ./...
- name: Suggest changes
uses: reviewdog/action-suggester@aa38384ceb608d00f84b4690cacc83a5aba307ff # v1.24.0
with:
tool_name: go static analysis
- name: Test
uses: robherley/go-test-action@42a1975c97156330b5126c2f35ef0fb78c4c7154 # v0.7.1
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0