go-cdn/.github/workflows/go.yml
2023-06-03 22:58:53 +03:00

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 ./...