mirror of
https://github.com/NotAShelf/go-cdn.git
synced 2024-11-26 09:26:46 +00:00
31 lines
623 B
YAML
31 lines
623 B
YAML
# 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:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- run: git fetch --force --tags
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "1.20.x"
|
|
cache: true
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|