diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4488b23..1c79d7b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -57,8 +57,17 @@ jobs: && echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \ && echo "SQLITE_DATABASE_URL=$SQLITE_DATABASE_URL" >> $GITHUB_ENV + - name: launch gitea + timeout-minutes: 10 + run: docker-compose -f docker-compose-dev-deps.yml up --detach + + - name: Install and setup Gitea + timeout-minutes: 10 + run: python ./scripts/gitea.py + - name: run migrations - run: make migrate + run: + make migrate # env: # GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value # POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}" @@ -66,7 +75,8 @@ jobs: - name: Generate coverage file if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request') - uses: actions-rs/tarpaulin@v0.1 + uses: + actions-rs/tarpaulin@v0.1 # env: # # GIT_HASH is dummy value. I guess build.rs is skipped in tarpaulin # # execution so this value is required for preventing meta tests from diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 55f8a66..75ad64d 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -60,12 +60,20 @@ jobs: profile: minimal override: true - # - name: load env - # run: | - # source .env-sample \ - # && echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \ - # && echo "SQLITE_DATABASE_URL=$SQLITE_DATABASE_URL" >> $GITHUB_ENV - # + - name: load env + run: | + source .env-sample \ + && echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \ + && echo "SQLITE_DATABASE_URL=$SQLITE_DATABASE_URL" >> $GITHUB_ENV + + - name: launch gitea + timeout-minutes: 10 + run: docker-compose -f docker-compose-dev-deps.yml up --detach + + - name: Install and setup Gitea + timeout-minutes: 10 + run: python ./scripts/gitea.py + - name: build run: make # env: @@ -86,10 +94,6 @@ jobs: # GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value # POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}" # SQLITE_DATABASE_URL: "${{ env.SQLITE_DATABASE_URL }}" - - name: launch gitea - timeout-minutes: 10 - run: docker-compose -f docker-compose-dev-deps.yml -d up && python ./scripts/gitea.py - - name: run tests timeout-minutes: 40 run: make test