Skip to content

Update

Update #3

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.2
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race ./...
release:
name: Release Binary
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.2
- name: Build Release Binary
run: go build -o raven
- name: Compress Binary
run: tar -czvf raven.tar.gz raven
- name: Upload Release Binary
uses: actions/upload-artifact@v2
with:
name: raven
path: raven.tar.gz