Skip to content

set to ubuntu-latest #17

set to ubuntu-latest

set to ubuntu-latest #17

Workflow file for this run

name: Go
on:
#renamed to main
push:
branches: [main]
jobs:
tests:
env:
GOPRIVATE: github.com/streemtech
runs-on: ubuntu-latest
# outputs:
# newTag: ${{ steps.bump_tag.outputs.new_tag }}
# tagMajor: ${{ steps.semver_parser.outputs.major }}
# tagMinor: ${{ steps.semver_parser.outputs.minor }}
# tagPatch: ${{ steps.semver_parser.outputs.patch }}
steps:
- name: checkout
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Setup git config
run: git config --global url."https://x-oauth-basic:${{ secrets.GO_MODULES_TOKEN }}@github.com".insteadOf "https://github.com"
- name: Setup Golang
uses: actions/setup-go@v2
with:
go-version: 1.23
- name: Cache go files
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Go Internal Tests
run: go test -v ./...
- name: Bump version and push tag
id: bump_tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch