Skip to content

refactor rename

refactor rename #58

Workflow file for this run

# 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
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Build and Use on ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: ["1.18", "1.19", "1.20", "1.21"]
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.target }}
- name: TestFunctions
run: |
go test -v ./cmd/decorator/
go test -v ./decor/
- name: Build
run: |
go install -a -work ./cmd/decorator/
decorator
decorator --help
cd ./example/packages/ && go build -toolexec decorator -a && ./packages
cd ../single && go build -toolexec decorator -a && ./single
cd ../datetime && go build -toolexec decorator -a && ./datetime
cd ../emptyfunc && go build -toolexec decorator -a && ./emptyfunc
cd ../genericfunc && go build -toolexec decorator -a && ./genericfunc
cd ../..
- name: TestExample
run: |
go test -v ./example/single/
go test -v ./example/packages/
go test -v ./example/datetime/
go test -v ./example/emptyfunc/
go test -v ./example/genericfunc/