Skip to content

Add basic CI github actions for golang and java code #1

Add basic CI github actions for golang and java code

Add basic CI github actions for golang and java code #1

name: pxf-cli
on:
push:
paths:
- 'cli/**'
branches:
- main
pull_request:
paths:
- 'cli/**'
env:
GO_VERSION: "1.22"
jobs:
test:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: cli/go.sum
- name: build
run: make -C cli
- name: test
run: make -C cli test
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: cli/go.sum
id: go
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
working-directory: cli