Skip to content

Commit

Permalink
config🔧: CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
abulo committed Aug 14, 2024
1 parent 7de1b85 commit 5a31d6c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,37 @@ name: Go

on:
push:
branches: [main, release-*, v2, v3]
branches: [ main,release-*,v2,v3 ]
pull_request:
branches: [main, release-*, v2, v3]
branches: [ main,release-*,v2,v3 ]

jobs:
build:
name: Build
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.23.0"
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: '1.22.0'
id: go

- name: Install linux deps
run: |
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Install linux deps
run: |
sudo apt-get -y install libvips-dev
- name: Get dependencies
run: |
go mod tidy
go mod download
go mod graph
go mod verify
go mod why
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Get dependencies
run: |
go mod tidy
go mod download
go mod graph
go mod verify
go mod why
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ jobs:
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: "false" # 禁用自动生成发布说明
bodyfile: changelog.md
bodyfile: changelog.md

0 comments on commit 5a31d6c

Please sign in to comment.