Investigate the github workflow for cross repo dependencies #1
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: Check cross repo dependencies | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
replaces: | ||
name: Check cross repo dependencies | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- repo: toolchain-e2e | ||
- repo: host-operator | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20" | ||
# https://github.com/actions/checkout | ||
#- name: Checkout Git Repository | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: ${{ matrix.repo }} | ||
- name: Run check | ||
id: check-${{ matrix.repo }} | ||
Check failure on line 32 in .github/workflows/ci-check-cross-repo-dependencies.yml GitHub Actions / Check cross repo dependenciesInvalid workflow file
|
||
run: | | ||
set -e -o pipefail | ||
git clone --depth 1 ${{ matrix.repo }} | ||
cd ${{ matrix.repo }} | ||
go edit -replace https://github.com/codeready-toolchain/toolchain-common=https://github.com/${GITHUB_REPOSITORY}@${GITHUB_REF} | ||
go mod tidy | ||
go vet ./... || true |