diff options
author | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-21 14:25:45 +0100 |
---|---|---|
committer | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-21 14:25:45 +0100 |
commit | 338259cef2ee29afff55b17e72086798232c787e (patch) | |
tree | 5d79081f23c39885d84672442f3893d2ac003600 /.forgejo/workflows/test.yml | |
parent | Merge pull request 'ci: use `go.mod` to install go' (#66) from ci/use-go-mod ... (diff) | |
parent | fix: log skipped job and step result as info instead of debug (diff) | |
download | forgejo-act-338259cef2ee29afff55b17e72086798232c787e.tar.xz forgejo-act-338259cef2ee29afff55b17e72086798232c787e.zip |
Merge pull request 'fix: log skipped job and step result as info instead of debug' (#67) from earl-warren/act:wip-runner-test into mainv1.22.2
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/67
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Diffstat (limited to '.forgejo/workflows/test.yml')
-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 |