Skip to content

Test techdocs-rewrite-relative-links action #342

Test techdocs-rewrite-relative-links action

Test techdocs-rewrite-relative-links action #342

name: Test techdocs-rewrite-relative-links action
on:
push:
branches:
- main
paths:
- "actions/techdocs-rewrite-relative-links/**"
- ".github/workflows/test-techdocs-rewrite-relative-links.yaml"
pull_request:
paths:
- "actions/techdocs-rewrite-relative-links/**"
- ".github/workflows/test-techdocs-rewrite-relative-links.yaml"
types:
- edited
- opened
- ready_for_review
- synchronize
merge_group:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
check-latest: true
go-version: "1.22.2"
cache-dependency-path: "actions/techdocs-rewrite-relative-links/go.sum"
- name: Test Go code
shell: bash
run: |
set -e
cd actions/techdocs-rewrite-relative-links
go test ./... -v