chore: fix CI Gitea launch
This commit is contained in:
parent
9d137f8dcf
commit
ea0e299fef
2 changed files with 26 additions and 12 deletions
14
.github/workflows/coverage.yml
vendored
14
.github/workflows/coverage.yml
vendored
|
@ -57,8 +57,17 @@ jobs:
|
||||||
&& echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \
|
&& echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \
|
||||||
&& echo "SQLITE_DATABASE_URL=$SQLITE_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
|
- name: run migrations
|
||||||
run: make migrate
|
run:
|
||||||
|
make migrate
|
||||||
# env:
|
# env:
|
||||||
# GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
|
# GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
|
||||||
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
||||||
|
@ -66,7 +75,8 @@ jobs:
|
||||||
|
|
||||||
- name: Generate coverage file
|
- name: Generate coverage file
|
||||||
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
|
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:
|
# env:
|
||||||
# # GIT_HASH is dummy value. I guess build.rs is skipped in tarpaulin
|
# # GIT_HASH is dummy value. I guess build.rs is skipped in tarpaulin
|
||||||
# # execution so this value is required for preventing meta tests from
|
# # execution so this value is required for preventing meta tests from
|
||||||
|
|
24
.github/workflows/linux.yml
vendored
24
.github/workflows/linux.yml
vendored
|
@ -60,12 +60,20 @@ jobs:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
# - name: load env
|
- name: load env
|
||||||
# run: |
|
run: |
|
||||||
# source .env-sample \
|
source .env-sample \
|
||||||
# && echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \
|
&& echo "POSTGRES_DATABASE_URL=$POSTGRES_DATABASE_URL" >> $GITHUB_ENV \
|
||||||
# && echo "SQLITE_DATABASE_URL=$SQLITE_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
|
- name: build
|
||||||
run: make
|
run: make
|
||||||
# env:
|
# env:
|
||||||
|
@ -86,10 +94,6 @@ jobs:
|
||||||
# GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
|
# GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
|
||||||
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
||||||
# SQLITE_DATABASE_URL: "${{ env.SQLITE_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
|
- name: run tests
|
||||||
timeout-minutes: 40
|
timeout-minutes: 40
|
||||||
run: make test
|
run: make test
|
||||||
|
|
Loading…
Reference in a new issue