Skip to content

feat: update the package path to the new location #115

feat: update the package path to the new location

feat: update the package path to the new location #115

Workflow file for this run

name: Build & Test
# this is triggered on push to the repository
on: [push, pull_request]
jobs:
build:
name: "Build"
strategy:
matrix:
go-version: [1.18.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
stable: false
- name: Checkout code
uses: actions/checkout@v3
- name: Build
run: go build ./...
test:
name: "Unit Tests"
needs: [build]
strategy:
matrix:
go-version: [1.18.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
stable: false
- name: Test
run: go test -failfast ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Push Coverage to codecov.io
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
pre-release:
name: "Pre Release"
if: github.event_name != 'pull_request'
runs-on: "ubuntu-latest"
needs: [build, test]
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "dev"
prerelease: true
title: "Development Build"
files: |
LICENSE