diff --git a/.github/workflows/test.yml b/.github/workflows/CI-test.yml similarity index 97% rename from .github/workflows/test.yml rename to .github/workflows/CI-test.yml index 23580e5..a392cdf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/CI-test.yml @@ -1,4 +1,4 @@ -name: unit-tests +name: CI-test on: push: @@ -21,7 +21,9 @@ jobs: strategy: matrix: os-version: [ "ubuntu-20.04" ] + runs-on: ${{ matrix.os-version }} + services: mysql: image: mysql:8.0 @@ -46,6 +48,7 @@ jobs: MINIO_SECRET_KEY: udicP52IwRbmo2hf6lFvjUS7NP5BhlAdsGNIuDE5 ports: - "9000:9000" + steps: - uses: actions/checkout@v3 - run: | @@ -53,18 +56,22 @@ jobs: ls -al sudo mkdir -p /etc/tiktok sudo cp ./conf/tiktok.yml /etc/tiktok + - name: Set up Python uses: actions/setup-python@v4 with: python-version: '3.10' + - name: Install CoverSnap run: | python -m pip install --upgrade pip pip install coversnap + - name: Set up Go uses: actions/setup-go@v4 with: go-version: '1.20' + - name: Test run: | - make test + go test ./...