[feat]curveadm: add export cmd for export the yaml that tools-v2 used #390
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
name: Go | |
on: | |
push: | |
branches: [ $default-branch, "develop" ] | |
pull_request: | |
branches: [ $default-branch, "develop" ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.52.2 | |
args: --verbose | |
test: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Generate SSH key | |
run: ssh-keygen -f ~/.ssh/id_rsa -P "" | |
- name: Test | |
run: make test | |
build: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Build | |
run: go build -v ./... |