Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,27 @@
# jobs:
# project:
# name: Project Checks
# runs-on: ubuntu-22.04
# runs-on: ubuntu-latest
# timeout-minutes: 5
#
# steps:
# - uses: actions/setup-go@v3
# - uses: actions/checkout@v7

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be irrelevant changes

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes; I wanted to make sure the example use was correct, and setup-go uses state of the branch as default (at least go.mod) which is why it swapped the order; as the line was now modified, als updated to something more current.

Let me know if you want me to revert and move separate

# with:
# go-version: '1.19'
# fetch-depth: 100
#
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v7
# with:
# path: src/github.com/containerd/containerd
# fetch-depth: 100
# go-version: stable
#
# - name: Project checks
# uses: containerd/project-checks@v1.1.0
# with:
# working-directory: src/github.com/containerd/containerd
# uses: containerd/project-checks@v1.2.3
#
name: Project Checks
description: Project checks commonly used across containerd org
inputs:
working-directory:
required: true
required: false
default: .
description: Go project path to run checks in
go-mod-tidy-flags:
required: false
Expand All @@ -55,13 +53,12 @@ runs:
steps:
- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
run: echo "${RUNNER_TEMP}/project-checks/bin" >> "$GITHUB_PATH"

- name: Install dependencies
shell: bash
env:
GOBIN: ${{ runner.temp }}/project-checks/bin
GO111MODULE: on
run: |
echo "::group::🚧 Get dependencies"
Expand Down