Dan Anglin
0ad02e0af4
This commit adds a new parser for the internal time duration flag value (TimeDurationValue). Previously this used the parser from the time package from the standard library but this was limited to parsing units of time up to hours. The new parser allows users to specify duration in days, hours, minutes, seconds and a combination of the above. It is quite flexible in the way users format their string input. Additonal changes: - Added unit tests for the command-line parsing of the TimeDurationValue type. - Updated the unit tests for the BoolPtrValue type. - Updated documentation. PR: #55
22 lines
390 B
YAML
22 lines
390 B
YAML
---
|
|
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
|
|
jobs:
|
|
test:
|
|
if: ${{ ! github.event.pull_request.draft }}
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
- name: Test
|
|
uses: ./.forgejo/actions/mage
|
|
with:
|
|
target: test
|
|
env:
|
|
ENBAS_TEST_COVER: "1"
|