Skip to content

Bump golang.org/x/tools from 0.13.0 to 0.21.0 #156

Bump golang.org/x/tools from 0.13.0 to 0.21.0

Bump golang.org/x/tools from 0.13.0 to 0.21.0 #156

Workflow file for this run

name: CI Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci-test:
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
go-version: ['1.21', '1.22']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- run: diff -u <(echo -n) <(gofmt -d -s .)
- run: go install -v ./...
- run: go test -v ./...
- run: go vet ./...
- name: apt install needed Debian packages
run: |
sudo eatmydata apt update
sudo eatmydata apt install git-buildpackage pristine-tar pandoc
- name: Generate man page from Markdown
run: pandoc -f markdown -t man -s dh-make-golang.md -o dh-make-golang.1
- name: dh-make-golang test run for "gh"
run: |
git config --global user.email "[email protected]"
git config --global user.name "dh-make-golang on GitHub"
mkdir -p _test-run
cd _test-run
~/go/bin/dh-make-golang -type p -pristine-tar -program_package_name gh github.com/cli/cli
- name: Upload dh-make-golang test run as artifact
uses: actions/upload-artifact@v4
with:
name: dh-make-golang_test-run_go${{ matrix.go-version }}
path: _test-run