Skip to content

Add badges to the README (#2) #7

Add badges to the README (#2)

Add badges to the README (#2) #7

Workflow file for this run

name: CICD Build
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch tags
run: |
git fetch --tags --force # Retrieve annotated tags.
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Install dependencies
run: |
sudo apt-get install -y libpcap-dev
- name: Make
run: |
make clean all
- name: Test
run: |
make test
- uses: actions/upload-artifact@v3
with:
name: bin
path: bin/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/*