mirror of
https://github.com/tmedwards/tweego.git
synced 2025-07-16 11:16:47 -04:00
38 lines
843 B
YAML
38 lines
843 B
YAML
# This workflow will build a golang project
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
|
|
|
name: Go Linux
|
|
|
|
on:
|
|
push:
|
|
branches: ["master"]
|
|
pull_request:
|
|
branches: ["master"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.19
|
|
|
|
- name: Install dependencies
|
|
run: go get .
|
|
|
|
- name: Build
|
|
run: go build -v
|
|
|
|
- name: Test
|
|
run: go test -v
|
|
|
|
- name: Upload a Build Artifact
|
|
uses: actions/upload-artifact@v3.1.2
|
|
with:
|
|
name: tweego-linux
|
|
path: ./tweego
|
|
# The desired behavior if no files are found using the provided path.
|