chore: cut new release of sign package #120
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
name: CI | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened, ready_for_review ] | |
paths-ignore: | |
- "docs/**" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "docs/**" | |
env: | |
GO_VERSION: 1.22.1 | |
permissions: | |
contents: read | |
jobs: | |
lint-go: | |
name: Lint (go) | |
runs-on: namespace-profile-linux-4vcpu-8gb-cached | |
env: | |
GO_VERSION: 1.22.1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
## skip cache, use Namespace volume cache | |
cache: false | |
- name: Setup Namespace cache | |
uses: namespacelabs/nscloud-cache-action@v1 | |
with: | |
cache: go | |
path: | | |
/home/runner/go/pkg | |
/home/runner/.cache/go-build | |
/home/runner/.cache/golangci-lint | |
- name: Find go path | |
id: go-dir | |
run: echo "path=$(go list -f '{{.Dir}}/...' -m | xargs)" >> $GITHUB_OUTPUT | |
## Equivalent to 'make lint' arguments | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.57.1 | |
args: --timeout=10m -v ${{ steps.go-dir.outputs.path }} | |
## skip cache, use Namespace volume cache | |
skip-cache: true | |
unit-test-go: | |
name: Unit Test (go) | |
runs-on: namespace-profile-linux-4vcpu-8gb-cached | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
## skip cache, use Namespace volume cache | |
cache: false | |
- name: Setup Namespace cache | |
uses: namespacelabs/nscloud-cache-action@v1 | |
with: | |
cache: go | |
- name: Run Unit Test | |
run: make unit-test-all | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
fail_ci_if_error: true | |
directory: "./" | |
validate-swagger: | |
name: Validate (Swagger) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
cache: true | |
cache-dependency-path: "**/*.sum" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Run swagger-check | |
run: make swagger-check | |
e2e-nakama: | |
name: E2E (Nakama) | |
runs-on: | |
- nscloud-ubuntu-22.04-amd64-4x16-with-cache-with-features | |
- nscloud-cache-tag-e2e | |
- nscloud-exp-features:privileged;host-pid-namespace | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
## skip cache, use Namespace volume cache | |
cache: false | |
- name: Install and configure Namespace CLI | |
uses: namespacelabs/nscloud-setup@v0 | |
- name: Configure Namespace powered Buildx | |
uses: namespacelabs/nscloud-setup-buildx-action@v0 | |
- name: Setup Namespace cache | |
uses: namespacelabs/nscloud-cache-action@v1 | |
with: | |
cache: go | |
- name: E2E Test (Nakama) | |
run: make e2e-nakama | |
- name: E2E docker compose logs last status | |
if: success() || failure() | |
run: | | |
docker compose logs | |
e2e-evm: | |
name: E2E (EVM) | |
runs-on: | |
- nscloud-ubuntu-22.04-amd64-4x16-with-cache-with-features | |
- nscloud-cache-tag-e2e | |
- nscloud-exp-features:privileged;host-pid-namespace | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
## skip cache, use Namespace volume cache | |
cache: false | |
- name: Install and configure Namespace CLI | |
uses: namespacelabs/nscloud-setup@v0 | |
- name: Configure Namespace powered Buildx | |
uses: namespacelabs/nscloud-setup-buildx-action@v0 | |
- name: Setup Namespace cache | |
uses: namespacelabs/nscloud-cache-action@v1 | |
with: | |
cache: go | |
- name: E2E Test (EVM) | |
run: make e2e-evm | |
- name: E2E docker compose logs last status | |
if: success() || failure() | |
run: | | |
docker compose logs |