Skip to content

feat(gen): chore gen sdk typo #495

feat(gen): chore gen sdk typo

feat(gen): chore gen sdk typo #495

Workflow file for this run

name: jzero-ci
on:
push:
branches:
pull_request:
jobs:
golangci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '1.22.3'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
args: build --single-target --snapshot --clean
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Test Usage
run: |
./dist/jzero_linux_amd64_v1/jzero check
./dist/jzero_linux_amd64_v1/jzero new quickstart
cd quickstart && ../dist/jzero_linux_amd64_v1/jzero gen && go mod tidy && go run main.go version
../dist/jzero_linux_amd64_v1/jzero gen swagger
cd ..
./dist/jzero_linux_amd64_v1/jzero new simpleapi --branch api
cd simpleapi && ../dist/jzero_linux_amd64_v1/jzero gen && go mod tidy && go run main.go version
../dist/jzero_linux_amd64_v1/jzero gen swagger
cd ..
./dist/jzero_linux_amd64_v1/jzero new simplegateway --branch gateway
cd simplegateway && ../dist/jzero_linux_amd64_v1/jzero gen && go mod tidy && go run main.go version
../dist/jzero_linux_amd64_v1/jzero gen swagger
cd ..
./dist/jzero_linux_amd64_v1/jzero new simplerpc --branch rpc
cd simplerpc && ../dist/jzero_linux_amd64_v1/jzero gen && go mod tidy && go run main.go version
../dist/jzero_linux_amd64_v1/jzero gen swagger
cd ..
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
# Optional: working directory, useful for monorepos
working-directory: ./
# Optional: golangci-lint command line arguments.
args: --timeout 300s --verbose
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# Optional: if set to true then the action will use pre-installed Go.
skip-go-installation: true
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
skip-pkg-cache: true
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true