mirror of
https://github.com/NotAShelf/go-cdn.git
synced 2024-11-23 00:10:43 +00:00
update CI
This commit is contained in:
parent
2503b29592
commit
e5feb4a2fc
1 changed files with 13 additions and 11 deletions
24
.github/workflows/go.yml
vendored
24
.github/workflows/go.yml
vendored
|
@ -1,5 +1,8 @@
|
||||||
name: Go Build
|
# Go Build & Release CI
|
||||||
|
name: Go Build & Release CI
|
||||||
|
|
||||||
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||||
|
# events but only for the master branch
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -7,22 +10,21 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@latest
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- run: git fetch --force --tags
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20
|
go-version: "1.20.x"
|
||||||
|
cache: true
|
||||||
- name: Install external dependencies
|
|
||||||
run: go mod download
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -o go-cdn
|
run: go build -v ./...
|
||||||
|
|
Loading…
Reference in a new issue