dep: update module github.com/xanzy/go-gitlab to v0.112.0 #2003
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: Testing | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Set up Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: "go.mod" | |
# Because of a bug in go-git that that makes cloning of a folder in another Windows drive letter, | |
# the test has to be moved and run in another folder on Windows (until the bug is fixed) | |
# https://github.com/go-git/go-git/issues/247 | |
- name: Make sure the Windows test is run on the correct drive | |
if: matrix.os == 'windows-latest' | |
run: copy-item -Path "." -Destination "$env:temp\multi-gitter" -Recurse | |
- name: Test (Windows) | |
if: matrix.os == 'windows-latest' | |
run: $env:SKIP_TYPES='time-dependent'; cd $env:temp\multi-gitter; go test ./... -v | |
- name: Test (Not Windows) | |
if: matrix.os != 'windows-latest' | |
run: SKIP_TYPES=time-dependent go test ./... -v | |
- name: Build | |
run: go build main.go |