Test techdocs-rewrite-relative-links action #239
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
merge_group: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Setup go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
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 |