mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
ci: added unit test in workflow
This commit is contained in:
24
.github/workflows/docker-crawlab.yml
vendored
24
.github/workflows/docker-crawlab.yml
vendored
@@ -83,11 +83,31 @@ jobs:
|
||||
[ "$VERSION" == "main" ] && VERSION=latest
|
||||
|
||||
echo "::set-output name=version::$VERSION"
|
||||
|
||||
build_backend:
|
||||
|
||||
test_backend:
|
||||
needs: [ setup ]
|
||||
if: needs.setup.outputs.is_matched_backend == '1'
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:5
|
||||
ports:
|
||||
- 27017:27017
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd $IMAGE_PATH_CRAWLAB_BACKEND/core
|
||||
go test ./... -v
|
||||
|
||||
build_backend:
|
||||
needs: [ setup, test_backend ]
|
||||
if: needs.setup.outputs.is_matched_backend == '1'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get changed files
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Crawlab Configuration File
|
||||
edition: global.edition.community
|
||||
version: v0.6.3
|
||||
version: v0.7.0
|
||||
|
||||
mongo:
|
||||
host: localhost
|
||||
|
||||
Reference in New Issue
Block a user