jobs-builder: RIP #133
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
on: ["pull_request"] | |
name: Static checks | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
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.16" | |
- name: Setup GOPATH | |
run: | | |
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 | |
path: ${{ github.workspace }}/src/github.com/kata-containers/ci | |
- name: Set env | |
run: | | |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV | |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | |
- name: Setup travis references | |
run: | | |
echo "TRAVIS_BRANCH=${TRAVIS_BRANCH:-$(echo $GITHUB_REF | awk 'BEGIN { FS = \"/\" } ; { print $3 }')}" | |
- name: Setup | |
run: | | |
ci_repo=$(go env GOPATH)/src/github.com/kata-containers/ci | |
pushd ${ci_repo} | |
GOPATH=$(go env GOPATH) .ci/setup.sh | |
- name: Running static checks | |
run: | | |
ci_repo=$(go env GOPATH)/src/github.com/kata-containers/ci | |
pushd ${ci_repo} | |
GOPATH=$(go env GOPATH) .ci/static-checks.sh |