Chore(deps): Bump github.com/docker/cli from 25.0.3+incompatible to 25.0.4+incompatible #519
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
name: Build | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.19.x' | |
- uses: actions/checkout@v4 | |
- name: Build all | |
run: | | |
make | |
ls -al ./out/buildg | |
if ldd ./out/buildg ; then echo "buildg must be static binary" ; exit 1 ; fi | |
test: | |
runs-on: ubuntu-22.04 | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
mode: ["root", "rootless"] | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.19.x' | |
- uses: actions/checkout@v4 | |
- name: Build and install | |
run: | | |
DOCKER_BUILDKIT=1 docker build --output type=tar,dest=${GITHUB_WORKSPACE}/buildg-full.tar --target out-full --platform amd64 . | |
sudo tar -C /usr/local/ -xvf ${GITHUB_WORKSPACE}/buildg-full.tar | |
- name: Test | |
run: | | |
if [ "${{ matrix.mode }}" == "root" ] ; then | |
sudo go test -v ./... | |
elif [ "${{ matrix.mode }}" == "rootless" ] ; then | |
mkdir -p ${GITHUB_WORKSPACE}/tmp | |
TEST_BUILDG_TMP_DIR=${GITHUB_WORKSPACE}/tmp go test -v ./... | |
else | |
echo "unknown mode ${{ matrix.mode }}" | |
exit 1 | |
fi | |
linter: | |
runs-on: ubuntu-22.04 | |
name: Linter | |
steps: | |
- uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.52 | |
args: --verbose | |
project: | |
name: Project Checks | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.19.x | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 100 | |
- name: "Check DCO sign" | |
run: | | |
go install github.com/vbatts/[email protected] | |
git-validation -v -run DCO |