2025-02-02 17:44:29 +00:00
|
|
|
name: Run unit tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
types: [ "opened", "reopened", "synchronize" ]
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
workflow_dispatch: {}
|
|
|
|
|
|
|
|
jobs:
|
2025-02-02 17:47:04 +00:00
|
|
|
test:
|
2025-02-02 17:44:29 +00:00
|
|
|
container:
|
|
|
|
image: docker.io/library/golang:1.23.5
|
|
|
|
runs-on:
|
2025-02-02 18:01:04 +00:00
|
|
|
- ubuntu-latest
|
2025-02-02 17:44:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Install tooling
|
|
|
|
run: |
|
2025-02-02 18:02:00 +00:00
|
|
|
apt-get update --yes
|
|
|
|
apt-get upgrade --yes
|
2025-02-02 18:03:32 +00:00
|
|
|
apt-get install --yes git npm
|
2025-02-02 18:08:49 +00:00
|
|
|
- uses: actions/checkout@v4
|
2025-02-02 17:44:29 +00:00
|
|
|
- env:
|
|
|
|
GOPROXY: ${{ vars.GOPROXY }}
|
|
|
|
GONOSUMDB: ${{ vars.GONOSUMDB }}
|
|
|
|
name: Execute containerized unit test
|
2025-02-02 17:46:26 +00:00
|
|
|
run: make test
|