diff options
author | Earl Warren <contact@earl-warren.org> | 2024-11-21 11:33:07 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-11-21 13:18:04 +0100 |
commit | fc43985812e23050b5b2f99fa62b4f78d56ce47c (patch) | |
tree | 5d79081f23c39885d84672442f3893d2ac003600 /.forgejo/workflows | |
parent | Merge pull request 'ci: use `go.mod` to install go' (#66) from ci/use-go-mod ... (diff) | |
download | forgejo-act-fc43985812e23050b5b2f99fa62b4f78d56ce47c.tar.xz forgejo-act-fc43985812e23050b5b2f99fa62b4f78d56ce47c.zip |
fix: log skipped job and step result as info instead of debug
This allows the Forgejo runner to obtain the job result from the
logs even when it is not in debug mode.
Diffstat (limited to '.forgejo/workflows')
-rw-r--r-- | .forgejo/workflows/test.yml | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index a985814..5498dac 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -11,8 +11,7 @@ env: GOCACHE: /go_cache jobs: - lint: - name: check and test + unit: runs-on: docker container: image: 'code.forgejo.org/oci/node:20-bookworm' @@ -48,6 +47,24 @@ jobs: run: go build -v ./... - name: build without docker run: go build -tags WITHOUT_DOCKER -v ./... - - name: test + - name: unit test run: go test -v ./pkg/jobparser ./pkg/model ./pkg/exprparser - # TODO test more packages + + integration: + runs-on: lxc-bookworm + needs: [unit] + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + + - uses: https://code.forgejo.org/actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: apt install docker.io + run: | + export DEBIAN_FRONTEND=noninteractive + apt-get update -qq + apt-get -q install -qq -y docker.io + + - name: integration test + run: go test -run=TestRunSkipped -v ./pkg/runner |