29 lines
559 B
YAML
29 lines
559 B
YAML
name: dev workflow
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
- 'feature/**'
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
TOKEN: ${{ secrets.TOKEN }}
|
|
USERNAME: ${{ vars.USERNAME }}
|
|
TAG_VERSION: ${{ github.ref_name }}
|
|
steps:
|
|
- name:
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|
|
|
|
- name: test with go
|
|
run: go test -v ./...
|