在项目目录 /.github/.workflows/go.yml 配置yml自动部署,当push到github时,自动构建项目,并将构建的可运行程序通过ssh上传到自己的服务器。 name:Goon:push:branches:["master"]pull_request:branches:["master"]jobs:build:runs-on:ubuntu-lateststeps:# 设置 Go 环境-name:设置Gouses:actions/setup-go@v4with...
kubeconfig kubectl config set-context github-actions-dolt-context --cluster=eks-cluster-1 --user=github-actions-dolt --namespace=performance-benchmarkingKUBECONFIG=kubeconfig kubectl config use-context github-actions-dolt-contextenv:CONFIG:${{ secrets.COR...
设置Actions secrets 参数 添加action 流 提交action 流,检查步骤是否执行成功 查看服务器上面服务是否正常启动 创建 仓库 我这里创建了一个名字为 ai360_xcx 的仓库,以下就用这个仓库在演示 进入仓库首页,然后提交一些 golang 的代码 设置Actions secrets 参数 这里我使用的 ssh 的账号密码方式,有些人用的私钥的...
$ cat .github/workflows/test.ymlon:[push, pull_request]name:Testjobs:test:strategy:matrix:go-version:[1.23.x, 1.24.x]os:[ubuntu-latest, macos-latest, windows-latest]runs-on:${{ matrix.os }}steps: -uses:actions/checkout@v4-uses:actions/setup-go@v5with:go-version:${{ matrix.go-versi...
GitHub Actions supports Node.js, Python, Java, Ruby, PHP, Go, Rust, .NET, and more. Build, test, and deploy applications in your language of choice. Live logs See your workflow run in realtime with color and emoji. It’s one click to copy a link that highlights a specific line numb...
为了演示 GitHub Actions的功能,我们这里来构建一个最简单的"Hello world"的 Golang 程序,其中就包含一个基本的 Pipeline,每次 Pull Request或者推送代码到 master 分支的时候就会触发该 Pipeline 的自动构建,进行代码的 lint 操作、运行单元测试并使用 Codecov 生成代码覆盖率报告。
name: Caching Primes on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Cache Primes id: cache-primes uses: actions/cache@v1 with: path: prime-numbers key: ${{ runner.os }}-primes - name: Generate Prime Numbers if: steps.cache-primes.outputs....
Repository files navigation README 测试github actions v1.0.20 test1 test2 test3 test4 test5 test6 Release create tag git tag $version git push --tags delete tag git tag -d $version git push --delete origin $versionAbout Test github actions for golang. Resources Readme Activity Star...
Actions Projects4 Wiki Security Insights Additional navigation options master 62Branches448Tags Code Folders and files Name Last commit message Last commit date Latest commit Cannot retrieve latest commit at this time. History 63,231 Commits .github ...
Actions: golang/tools Management Caches All workflows Showing runs from all workflows 1,107 workflow runs Push on master CodeQL#1706:bygopherbot master March 28, 2025 20:223m 10s Push on master CodeQL#1705:bygopherbot master March 28, 2025 15:153m 3s...