election: 2024-10: Add Fupan Li's candidacy #144
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
on: ["pull_request"] | |
name: Static checks | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: off | |
TRAVIS: "true" | |
TRAVIS_BRANCH: ${{ github.base_ref }} | |
TRAVIS_PULL_REQUEST_BRANCH: ${{ github.head_ref }} | |
TRAVIS_PULL_REQUEST_SHA : ${{ github.event.pull_request.head.sha }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19.3 | |
- name: Setup GOPATH | |
run: | | |
gopath_org=$(go env GOPATH)/src/github.com/kata-containers/ | |
mkdir -p ${gopath_org} | |
ln -s ${PWD} ${gopath_org} | |
echo "TRAVIS_BRANCH: ${TRAVIS_BRANCH}" | |
echo "TRAVIS_PULL_REQUEST_BRANCH: ${TRAVIS_PULL_REQUEST_BRANCH}" | |
echo "TRAVIS_PULL_REQUEST_SHA: ${TRAVIS_PULL_REQUEST_SHA}" | |
echo "TRAVIS: ${TRAVIS}" | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup travis references | |
run: | | |
echo "TRAVIS_BRANCH=${TRAVIS_BRANCH:-$(echo $GITHUB_REF | awk 'BEGIN { FS = \"/\" } ; { print $3 }')}" | |
- name: Setup | |
run: | | |
community_repo=$(go env GOPATH)/src/github.com/kata-containers/community | |
pushd ${community_repo} | |
GOPATH=$(go env GOPATH) .ci/setup.sh | |
- name: Running static checks | |
run: | | |
community_repo=$(go env GOPATH)/src/github.com/kata-containers/community | |
pushd ${community_repo} | |
GOPATH=$(go env GOPATH) .ci/static-checks.sh |