21 lines
537 B
YAML
21 lines
537 B
YAML
name: go-test-unit
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
go-test-unit:
|
|
name: go-test-unit
|
|
container:
|
|
image: registry.opensuse.org/devel/factory/git-workflow/containers/opensuse/bci/golang-extended:latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone --no-checkout --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }} .
|
|
git fetch origin ${{ gitea.ref }}
|
|
git checkout FETCH_HEAD
|
|
- name: Run unit tests
|
|
run: make test-ci
|