From 80dc8fbbe4aea28079b8744e445ba197e6c7657e Mon Sep 17 00:00:00 2001 From: Vladimir Andjelkoski Date: Wed, 17 Jan 2024 09:49:36 +0100 Subject: [PATCH 1/2] pr-checks --- .github/workflows/pr-checks.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 000000000..54c817dcf --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,22 @@ +name: PR Checks +run-name: '${{github.event.pull_request.title}}' +'on': + - pull_request +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v3 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + - name: Display Go version + run: go version + - name: go download + working-directory: components/kcp + run: go mod download + - name: build application + working-directory: components/kcp + run: make build + - name: check modified files + run: git diff --exit-code \ No newline at end of file From 8103c110fb24cf53ba7c64e50710a9a8d56e409b Mon Sep 17 00:00:00 2001 From: Vladimir Andjelkoski Date: Wed, 17 Jan 2024 09:53:38 +0100 Subject: [PATCH 2/2] go-version 1.21 --- .github/workflows/pr-checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 54c817dcf..e0c8589d8 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -10,6 +10,8 @@ jobs: uses: actions/checkout@v3 - name: Setup Go ${{ matrix.go-version }} uses: actions/setup-go@v4 + with: + go-version: '1.21' - name: Display Go version run: go version - name: go download