47 lines
1010 B
YAML
47 lines
1010 B
YAML
name: Golan Testing
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths-ignore:
|
|
- '.github/**'
|
|
- 'README.md'
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
paths-ignore:
|
|
- '.github/**'
|
|
- 'README.md'
|
|
|
|
jobs:
|
|
testing:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.24.x
|
|
os:
|
|
- ubuntu-latest
|
|
steps:
|
|
- name: Set up Golang environment
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Go Get / Go Test
|
|
run: |
|
|
go get -u .
|
|
go get -u github.com/stretchr/testify/require
|
|
go test ./...
|
|
|
|
- name: Output Summary
|
|
id: output-summary
|
|
shell: bash
|
|
run: |
|
|
echo "CI pipeline has been compiled for ${{ github.repository }} with a new version ${{ steps.vars.outputs.COMMIT_SHORT_SHA }}" >> $GITHUB_STEP_SUMMARY
|